【Linux基础知识】CentOS7以RPM包的方式部署高版本PHP7.4(中) |
您所在的位置:网站首页 › 以下哪些是rpm包的优势 › 【Linux基础知识】CentOS7以RPM包的方式部署高版本PHP7.4(中) |
您所在的位置:首页 > IT干货资料 > linux > 【Linux基础知识】CentOS7以RPM包的方式部署高版本PHP7.4(中)
【Linux基础知识】CentOS7以RPM包的方式部署高版本PHP7.4(中)
来源:Linux培训问答
2020-08-21 17:14:48
![]() ![]() ![]() 编辑Apache配置文件 vi /etc/httpd/conf/httpd.conf 安装PHP7.4 FastCGI进程 php-fpm = php fastcgi process manager yum --enablerepo=remi-php74 install php-fpm systemctl enable php-fpm systemctl start php-fpm systemctl status php-fpm 安装配置NGINX1.6 CentOS7光盘自带 yum install nginx 编辑配置文件: vi /etc/nginx/nginx.conf 添加内容: server { listen 80 default_server; listen [::]:80 default_server; server_name _; root /usr/share/nginx/html; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; location / { } location ~ .php$ { try_files $uri =404; root /var/www/html; #nginx使用apache的web目录,可根据情况自行指定 fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi.conf; } error_page 404 /404.html; location = /40x.html { } ...... 编辑测试php文件: vi /var/www/html/info.php phpinfo(); ?> 文章“【Linux基础知识】CentOS7以RPM包的方式部署高版本PHP7.4(中)”已帮助 人更多内容 Linux基础知识>>本文地址:http://www.ujiuye.com/zhuanye/2020/52923.html THE END声明:本站稿件版权均属中公教育优就业所有,未经许可不得擅自转载。 ![]() ![]() ![]() ![]() (内含学习路线+视频教程+项目源码) 涉及Java、Web前端、UI设计、软件测试、Python等多个IT热门方向 ![]() 打开微信扫一扫即可领取哦~ 推荐阅读 【Linux基础知识】CentOS7制作光盘镜像数据备份 【Linux基础知识】CentOS7使用yum命令安装软件 【Linux基础知识】CentOS7rpm软件包安装 【Linux基础知识】shell字符串常见操作 【Linux基础知识】CentOS7创建本地yum源的方法 【Linux基础知识】CentOS7使用dd命令进行数据备份 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |