Xshell 6 connect to the server
step:
1, test the deployment, so not packaged directly copy the project to the next server-related directory.
2, after entering into the project root directory, enter the command "npm run dev" error "insufficient privileges."
3, modify the file permissions, enter the command "chmod -R u + x.", And then execute the implementation of "npm run dev", run successfully.
4, close the window, the service stops, page views fail.
5, reconnected, enter the command "which nohup", Output: "/ usr / bin / nohup ".
6, enter the command cd / usr / bin
7, enter the command vi .bash_profile
8, s into edit mode
9, the last line is inserted PATH = $ PATH: $ HOME / bin: / usr / bin
10, esc key to exit edit mode: wq to save and exit
11, enter the command source ~ / .bash_profile
12, back to the root directory of the project
13, enter the command "nohup npm run dev> / dev / null 2> & 1 &"
14, enter the command: exit
15, page visits, successful show. Shut down the server connection, refresh the page and success display.