one. CentOS Exchange SourceHttp://mirrors.aliyun.com/help/centos?spm=5176.bbsr150321.0.0.d6ykiD 1, Backup Mv/etc/yum.repos.d/centos-base.repo/ etc/yum.repos.d/centos-base.repo.backup2, download new Centos-base.repo to/etc/yum.repos.d/centos 5wget-o/etc/yum.repos.d/ Centos-base.repo Http://mirrors.aliyun.com/repo/Centos-5.repoCentOS 6wget-o/etc/yum.repos.d/centos-base.repo http ://mirrors.aliyun.com/repo/centos-6.repocentos 7wget-o/etc/yum.repos.d/centos-base.repo/http MIRRORS.ALIYUN.COM/REPO/CENTOS-7.REPO3, after running Yum makecache generate cache update Yum updatetwo. Installing PHP71. View the CentOS version number cat/etc/redhat-release CentOS Linux release 7.3.1611 (Core) 2. Need to install Epel-release first (3rd step premise) yum-y install Epel-release 3.rpm installation PHP7 the corresponding Yum source RPM-UVH https://mirror.webtatic.com/yum/el7/webtatic-release.rpm4. Install Php7[[email Protected] etc]# yum install php70w php70w-fpm php70w-mysql 5. View PHP version php-vthree. Installing Nginx1.yum Source Yum Localinstallhttp://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm2. Install the Nginxyum installation Nginx 3. Start Nginxservice nginx Start successful display: Redirecting To/bin/systemctl start Nginx.servicefour. Install MySQL operationNote: Oracle has the potential to charge MySQL, so the CentOS 7 version removes the MySQL database software from the default list of programs, replaces it with a free mariadb, and uses exactly the same 1. Install yum install mariadb-server-y 2. Start Systemctl start Mariadb.service 3. Set the boot start Systemctl enable Mariadb.service4. Set the MySQL root password mysql_secure_installation
Linux Learning (v)--CentOS installation with Yum Lnmp