1. Turn off the firewall
command: systemctl stop firewalld
Turn off the firewall boot from Kai
2. Turn off selinux
temporary closure selinux
command: setenforce 0
Selinux edit the configuration file, so that selinux is disabled by default boot
command: vi / etc / sysconfig / selinux
! [] (HTTPS []!
IP Address Configuration
Command: vi / etc / sysconfig / network -scripts / ifcfg-ens33
IP address settings to restart the network service to take effect
3. Installation wget
command: yum -y install wget
4. The Ali yum yum source as the default source
command: cd /etc/yum.repo.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com /repo/Centos-7.repo
5. Installation epel Source
Command:
yum the install epel -Y-Release
6. Installation LNMP resolve dependencies and install all the tools to compile
the command:
yum -y install gcc gcc-c ++ PCRE PCRE the make-devel zlib zlib-devel \
OpenSSL libxml2 libxml2-devel libcurl libcurl-devel libjpeg \
libjpeg libpng-devel as libpng- FreeType FreeType-devel devel \
OpenLDAP OpenLDAP-devel libmcrypt libmcrypt-devel tar \
OpenSSL-devel cmake ncurses ncurses-devel