Install Nginx MySQL PHP on Oracle Linux 6.5

1. Install MySQL 5.1.7

yum install mysql-serverphp

service start mysqldmysql

chkconfig --add mysqldlinux

2. Install Nginx

2.1 添加 Nginx Reponginx

touch /etc/yum.repos.d/nginx.repogit

2.2 Add follow to nginx.repoweb

[nginx] name=nginx repo baseurl=http://nginx.org/packages/rhel/6/$basearch/ gpgcheck=0 enabled=1redis

2.3 更新 reposql

yum updatephp7

2.4 安装 Nginxoracle

yum install nginx service start nginx chkconfig --add nginx

PS.查看服务加到开机启动的状况能够用如下指令

chkconfig --list nginx chkconfig --list mysqld

3. 安装 redis

3.1 添加 epel-release repos

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

yum install redis

service start redis chkconfig on redis sudo service redis start sudo chkconfig redis on

4. 安装 PHP7

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm yum install php70w-fpm php70w-opcache chconfig php-fpm on

5. 安装 Git

yum install git

参考网站:

  1. https://webtatic.com/packages/php70/ 2.Oracle Linux 下载网站 http://mirror.aarnet.edu.au/pub/oraclelinux
相关文章
相关标签/搜索