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
相關文章
相關標籤/搜索