您的位置:首页 > 数据库 > Oracle

Install Nginx MySQL PHP on Oracle Linux 6.5

2017-04-21 00:00 651 查看

1. Install MySQL 5.1.7

yum install mysql-server

service start mysqld

chkconfig --add mysqld

2. Install Nginx

2.1 添加 Nginx Repo

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

2.2 Add follow to nginx.repo

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

2.3 更新 repo

yum update

2.4 安装 Nginx

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

参考网站:

https://webtatic.com/packages/php70/
2.Oracle Linux 下载网站 http://mirror.aarnet.edu.au/pub/oraclelinux
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: