Some basic CentOS operations on a KVM virtual machine

Source: Internet
Author: User
Tags chmod ftp ssh centos port number

(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)

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.