MAC Client remote deployment project to Linux Server

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.