Centos安装nginx
2017-02-08 本文已影响20人
keviaor
先安装nginx 软件源
touch /etc/yum.repos.d/nginx.repo
vi /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
安装nginx、php、php-fpm、php-mysql
yum install nginx php php-fpm php-mysql
启动nginx php-fpm
systemctl start nginx
systemctl start php-rpm
浏览器打开ip
Paste_Image.png安装完成