Install Nginx + MySQL and centos7nginx on CentOS7

Source: Internet
Author: User

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

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.