Linux Apache server configuration
First, the Apache server installation and configuration
1. Use the yum utility to install the software tools
(1) inquiry
Whether using the command rpm -q httpd inquiry has been installed httpd
(2) Installation
Use the command yum -y install httpd
Occur after using this command
/var/run/yum.pid has been locked, PID 4105 as another program is running.
The workaround is to delete /var/run/yum.pid
This problem occurs after you run after
Network unreachable, that the official not to use the yum package, we can use yum some domestic sources, such as Ali cloud
Enter the following command
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo