【NGINX】LINUX安装NGINX
安装依赖 () · yum install gcc · yum install pcre-devel · yum install zlib zlib-devel · yum install openssl openssl-devel · //一键安装上面四个依赖 · yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel 下载 nginx 的 tar 包 · //创建一个文件夹 · cd /usr/local · mkdir nginx · cd nginx · //下载tar包 . wget http://nginx.org/download/nginx-1.13.7.tar.gz .//解压tar包 tar -zxvf nginx-1.13.7.tar.gz 安装 nginx( 如果 configure 报 xx not found 就在后面加 with-xx=路径 ) · //进入nginx目录 · cd /usr/local/nginx · //执行配置命令 注意:--with-http_ssl_module 开启SSL模块,支持Https请求 · ./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/nginx/sbin