wget http:// Nginx .org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
2.
rpm -ivh nginx-release-centos-7-0.el7.ngx.noarch.rpm
3.
yum install nginx
4
systemctl start nginx
5
systemctl enable nginx.service
6.安装php fpm(如果是php5.6,则安装php56w-fpm):
yum install php-fpm
7.需要启动php fpm模式:
service php-fpm start
8.自动启动:
systemctl enable php-fpm.service
9.代码部署:
将代码放到/usr/share/nginx/html下面
10.配置域名:
11.重启ngnix就好了
服务器日志在 / var /log/nginx下
海报
0 条评论
115
相关文章
本站已关闭游客评论,请登录或者注册后再评论吧~