使用yum快速安装nginx、php

2025-05-13 03:33:07

1、安装yum源yum install epel-release

使用yum快速安装nginx、php使用yum快速安装nginx、php

4、设置php-fpm随系统自动启动systemctl enable php-fpm.service

使用yum快速安装nginx、php

5、安装nginx需要先下载nginx的源并安装wgethttp://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpmrpm -ivhnginx-release-centos-6-0.el6.ngx.noarch.rpm安装完nginx源之后再使用yum install nginx命令安装

使用yum快速安装nginx、php

6、启动nginx并设置nginx随系统自动启动[root@remote src]# systemctl list-unit-files|gr髫潋啜缅ep nginxnginx.service disabled[root@remote src]# systemctl start nginx.service[root@remote src]# systemctl enable nginx.service Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service.[root@remote src]# ps -ef|grep nginxroot 39589 1 0 23:44 ? 00:00:00 nginx: master process /usr/sbin/nginxnginx 39590 39589 0 23:44 ? 00:00:00 nginx: worker processroot 39651 37526 0 23:45 pts/2 00:00:00 grep --color=auto nginx

使用yum快速安装nginx、php
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:78
  • 阅读量:67
  • 阅读量:30
  • 阅读量:82
  • 阅读量:26
  • 猜你喜欢