Giter Site home page Giter Site logo

serv00-vless's Introduction

serv00-vless 注册serv00

使用方法:

  1. 在WWW Websites处建一个nodejs

  2. 在Ports处,开通一个端口

  3. 在app.js中修改UUID和端口

  4. 把文件上传到迷个文件夹 public-nodejs

  5. 在 ssh 中进入30行文件所在的文件夹,输入以下命令:

    cd /usr/home/XXXXX/domains/XXXXX.serv00.net/public_nodejs

  6. 运行 npm install 来安装依赖项

  7. 运行 npm start 启动您的 Node.js 应用程序。

  8. 在WWW Websites处的Manage处,点击重启restart。

建议去CF设回源;其中的两处XXXXX,换成你自己的。

关闭命令窗口保持运行方法:

如果关闭命令窗口任然保持运行,可忽略以下方法。

  1. 使用 screen 命令:

    ​ ①首先,确保已安装 screen;在serv00无法安装,但后面可以使用screen,可能自带。

    	sudo apt-get update
    	sudo apt-get install screen
    

    ​ ②然后,在终端中执行以下命令以创建一个新的 screen 会话: ​

    screen -S mysession
    

    ​ ③在 screen 会话中,运行应用程序: ​

    node app.js
    

    ​ ④按下 Ctrl + A,然后按下 D 键将 screen 会话分离。 ​ ⑤关闭终端窗口后,应用程序将继续在后台运行。下次需要重新连接到 screen 会话时,可以使用以下命令: ​

    screen -r mysession
    
  2. 使用 tmux 命令:

    ​ ①首先,确保已安装 tmux(如果尚未安装):

    	sudo apt-get update
    	sudo apt-get install tmux
    

    ​ ②然后,在终端中执行以下命令以创建一个新的 tmux 会话: ​

    tmux new-session -s mysession
    

    ​ ③在 tmux 会话中,运行应用程序 ​

    node app.js
    

    ​ ④按下 Ctrl + B,然后按下 D 键将 tmux 会话分离。 ​ ⑤关闭终端窗口后,应用程序将继续在后台运行。下次需要重新连接到 tmux 会话时,可以使用以下命令:

    	tmux attach -t mysession
    

serv00-vless's People

Contributors

qwer-search avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.