First of all, you need to know the remote service 1:ip or domain name, 2: Username, password 3: The remote server has been installed SSH, under share under the Mac client how to deploy, window or other client just connect the service command is different.
Preparation: Remote server IP such as the 555.555.55.555 user name is: userlogin password is: Password The project name to deploy is: ProjectName
1. Log in to the remote server (the SSH protocol is provided by the General Service machine): SSH [email protected]
2. Next, you will be prompted to enter your password: password
3. The correct password will enter the service provider root directory, this time you can enter into the Var directory to use the command (here are some server tomact and other files, you can enter the var input ls to get this directory details); Cd/var
4. To close the Tomcat service first enter the Tomcat bin directory and enter:./shutdown.sh
5. Start the Tomcat service to enter in the Bin directory:./startup.sh
If you want to view the startup run log, enter the logs directory, and then enter: Tail-f catalina.out so you can view the dynamic log. CTRL + C exit
6. Cope folder inside the server, enter the corresponding directory and enter: Cp-r Original file target file
7. Delete a file directory (if you change-R to-rf, you will not be confirmed every time): Rm-r target file
8. Delete a file directly (you will be prompted to delete when performing the deletion, enter: Y for confirmation); RM target File
9. Open an editable file: Vim Server.xml will open the contents of this file in the terminal, but this time can not be edited, to edit can enter I into the insert mode. You can press ESC to exit edit mode, W save, Q to exit the software (q! is not saved, but exit), then CTRL + C enters command mode. Ctrl+f next page in normal mode, ctrl+b previous page
MAC Client remote deployment project to Linux Server