Linux Learning (v)--CentOS installation with Yum Lnmp

Source: Internet
Author: User
Tags aliyun

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

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.