Linux enterprise practical commands

Source: Internet
Author: User
Many Linux enterprise practical command companies use Linux servers. in actual development, they are all developed on the Windows platform and finally deployed on the Linxu server, in this process, many common Linux commands are encountered. Here we will write a backup to avoid forgetting it. we will... many Linux enterprise practical command companies use Linux servers. in actual development, they are all developed on the Windows platform and finally deployed on the Linxu server, in this process, many common Linux commands are encountered. Here, this is to write a backup to avoid forgetting that useful commands will be constantly updated in the future. 1. determine whether the local Windows machine can be connected to the remote Linux server in the local windows linux command input: ping huhu-89e4.cloud.slc.vip.com 2, from the local windows machine to log on to the remote linux server: for example, login server huhu-89e4.cloud.slc.vip.com, username is test, password is admin, then in the local windows linux command input: ssh test@huhu-89e4.cloud.slc.vip.com, if you can connect to the remote server, the command will automatically prompt you to enter the password, which can be connected. 3. disconnect from the remote Linxu server from the local Windows Server: Enter exit 4 in the linux command of the local windows Server and copy the log. Copy the logs on the remote Linux server to the c/Users/swang6 directory on the local c drive. Method 1: copy locally: suppose the current local Windows Command path is: c:/Users/swang6 execute: scp test@huhu-89e4.cloud.slc.vip.com in local Windows Command: /usr/local/nginx/conf/nginx. conf. enter the password for connecting to the remote Linux machine as prompted. Test is the connection remote user, huhu-89e4.cloud.slc.vip.com is the remote machine host, copy the file is nginx. conf Method 2: Remote Copy: log on to the remote Linux server using SSH, enter the directory where the log of the remote server is located, and then run: scp XX. log swang6@10.249.74.114:/c/Users/swang6 then follow the prompts to enter the password to connect to the local windows machine. Swang6 is the user name used to log on to the local windows system, and the local ip address is 10.249.74.114.
 
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.