(Owed by: Spring Night rain Http://blog.csdn.net/chunyexiyu)
After applying for the Kvm/vps virtual machine, the general installation of the system is Linux, such as Common CentOS;
With the host, generally we will build a Web server, FTP server, compile the server; For these common items, here are some basic operations.
First you need to know the host's IP and SSH listening port number, with the listening port number, you can use the Ssh/telnet tool to connect to the host.
1. Windows Local Install Tear-term, Termius can be installed on the phone for SSH connection to host
Port of Access See
View Ip:ip Addr
View ports (typically 22, but usually modify ports): Cat/etc/ssh/sshd_config
2. Install the HTTP server, which is accessed by using the browser to open IP directly when testing
Yum Install httpd
Service httpd Start
3. Install Net-tools to facilitate the execution of Netstat-an similar commands
Yum Install Net-tools
4. Download speed measurement tool, test rate
speedtest.py
wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest.py
./speedtest.py
5. Install FTP
Yum Install vsftpd
Service VSFTPD Start
Vi/etc/vsftpd/vsftpd.conf
Turn off anonymous access
Anonymous_enable=no
6. Installing gcc,g++
Yum Install GCC
Yum Install gcc-c++
7. Add sudo service permissions to User xxx
Reference: http://blog.csdn.net/dahangg/article/details/50537666
Vim/etc/sudoers
XXX all= (All) nopasswd:/sbin/service
(add user command adduser XXX Modify user password method passwd xxx)
8. Uninstalling software
For example, uninstalling VSFTPD
Yum Remove vsftpd
Other common commands:
Which find a command or program
Find. -name "aab*" to find files beginning with AaB
Ls-l Listing Details
chmod +x Add Execute Permissions
AddUser adding users
passwd Change Password
VI Edit Text
Cat View text content
(Owed by: Spring Night rain Http://blog.csdn.net/chunyexiyu)