Daily management of the CentOS Linux system 3 16th sessionThe first half of the classThe second half of the classLinux system service ManagementNtsysvTool NTSYSV similar to the graphical interface management tool, if you do not have the command
First check whether the SSHD service is enabledEnter terminal input #ssh localhostIf prompted: Ssh:connect to host localhost port 22:connection refused errorNo need to worry about it, no starting sshd service for the sake ofInstall sshd command:
The installation environment is:System: Win server R2 DataCenterHyper-V Version: 6.3.9600.16384CentOS Version: 7.0CentOS 7.0 downloaded from the Internet can be downloaded from the Http://pan.baidu.com/s/1mgLrPRM if not foundImport ISO image for
1. View IP address, get only one loopback address2, conduct network test, now to test, see can ping pass www.baidu.com3. Here are some ways to use the ping command.4, Ping the gateway, see if you can ping throughView the gateway
I. Account security1.1 Lock out redundant self-built accounts in the systemCheck method:Execute command#cat/etc/passwd#cat/etc/shadowCheck the account, password file, and the system administrator to confirm the unnecessary account. For some
I. Overview
The virtual machine knows that if the system is running to add a new device to the virtual machine, such as a hard disk, the system is not read the new hard disk, because the system will be in the boot to detect hardware devices.
The following information is included:http://blog.csdn.net/lovehuangjiaju/article/details/484947371. Extracting installation files, setting environment variables the installation files we use here are already compiled spark, Need to be paired with
Introduction: Here is how to build a lamp environment under CentOS (all using source code compilation installation), for Web server development.Lamp:linux + Apache + PHP + Mysql.• System: CentOS 6.5, 32-bit.CentOS installationI chose the 32-bit
In a CentOS system, when files are deleted by mistake, the following steps are performed to recover the files.1. Turn off all servicesWhen the deletion of files by mistake, in order to recover the data as much as possible, first to shut down all the
1. CentOS View Port occupancy For example, check the 80 port occupancy using the following command: Lsof-i tcp:2. List all ports Netstat-ntlp3. Open port (take port 80 as an example)3.1 Method One:Write modifications -j ACCEPTSave
The newly installed CentOS system server may be incorrectly configured, and the time zone needs to be adjusted. The following is the CentOS system using NTP to synchronize from a time server:The first step : Adjust the current time zone to Shanghai
1. Change the NAME option in the NIC configuration file ifcfg-enoxxxxxxVim /etc/sysconfig/network-scripts/ifcfg-enoxxxxxxName=eth02. Change the NIC profile nameC d/etc/sysconfig/network-scripts/MV Ifcfg-enoxxxxxx Ifcfg-eth03. Disable the predictable
CentOS Lamp The first part-environment build Linux Software removal method, MySQL installation, 19th sessionThe first half of the classHow to remove Linux softwareMySQL InstallationThe second half of the classApache Below a software httpd, you will
To deploy as root, Python feeds can also use http://mirrors.aliyun.com/pypi/simple/ Modifying the System
Change the SELinux configuration file/etc/selinux/config,selinux=disabled
Ssh-keygen
~/.ssh/authorized_keys Write Id_rsa.pub
1. Switch RunLevel/target using commands
# Systemctl Isolate Multi-user.target//switch to run Level 3, this command has no effect on the next boot, equivalent to Telinit 3# Systemctl Isolate Runlevel3.target//switch to run Level 3,
Download the Nginx bundle (package) corresponding to the current system version# wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
Build Nginx's Yum repository# RPM-IVH
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