Install Nginx + MySQL and centos7nginx on CentOS7
First, install the nginx yum source.
[Root @ AD ~] # Rpm-Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm Get http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm Warning:/var/tmp/rpm-tmp.aRXWtf: Header V4 RSA/SHA1 Signature, key ID 7bd9bf62: NOKEY Preparing... ################################# [100%] Upgrading/installing... 1: nginx-release-centos-7-0.el7.ngx ################################# [100%] |
[Root @ AD ~] # Cd/etc/yum. repos. d/ CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo CentOS-CR.repo CentOS-fasttrack.repo nginx. repo |
[Root @ AD yum. repos. d] # yum info nginx // yum view available nginx version information [Root @ AD yum. repos. d] # yum install nginx // yum install nginx
|
Install MySqlBy default, mysql does not exist in the yum source of CentOS7. To solve this problem, we need to download the mysql repo source first.
1. Download the mysql repo Source
$ Wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
2. Install the mysql-community-release-el7-5.noarch.rpm package
$ Sudo rpm-ivh mysql-community-release-el7-5.noarch.rpm
After installing this package, you will get the yum repo source for both mysql:/etc/yum. repos. d/mysql-community.repo,/etc/yum. repos. d/mysql-community-source.repo.
3. Install mysql
$ Sudo yum install mysql-server