CentOS7安装Nginx、PHP、MySQL运行环境

所属分类:Linux | 发布于 2024-01-05 10:19:59

 

安装运行环境

yum -y install gcc-c++ pcre-devel zlib-devel openssl openssl-devel curl-devel

 

1、安装Nginx

nginx安装包:nginx-1.24.0.tar.gz

执行安装命令

tar zxvf nginx-1.24.0.tar.gz
cd nginx-1.24.0
./configure --prefix=/sangfor/server/nginx --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module
make && make install

编译结果

nginx path prefix: "/sangfor/server/nginx"
  nginx binary file: "/sangfor/server/nginx/sbin/nginx"
  nginx modules path: "/sangfor/server/nginx/modules"
  nginx configuration prefix: "/sangfor/server/nginx/conf"
  nginx configuration file: "/sangfor/server/nginx/conf/nginx.conf"
  nginx pid file: "/sangfor/server/nginx/logs/nginx.pid"
  nginx error log file: "/sangfor/server/nginx/logs/error.log"
  nginx http access log file: "/sangfor/server/nginx/logs/access.log"
  nginx http client request body temporary files: "client_body_temp"
  nginx http proxy temporary files: "proxy_temp"
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: "scgi_temp"

2、安装PHP

 

3、安装MySQL

 

文哥博客(https://wenge365.com)属于文野个人博客,欢迎浏览使用

联系方式:qq:52292959 邮箱:52292959@qq.com

备案号:粤ICP备18108585号 友情链接