大数据全系列 教程
1869个小节阅读:465.4k
目录
408考研
JAVA全系列 教程
面向对象的程序设计语言
Python全系列 教程
Python3.x版本,未来主流的版本
人工智能 教程
顺势而为,AI创新未来
大厂算法 教程
算法,程序员自我提升必经之路
C++ 教程
一门通用计算机编程语言
微服务 教程
目前业界流行的框架组合
web前端全系列 教程
通向WEB技术世界的钥匙
大数据全系列 教程
站在云端操控万千数据
AIGC全能工具班
A A
White Night
3.3.3 准备工作Nginx安装
上传Nginx安装包到/opt目录下
解压 Nginx
xxxxxxxxxx
[root@node1 apps]# tar -zxvf nginx-1.20.1.tar.gz
创建目录/var/temp/nginx/client
xxxxxxxxxx
[root@node1 apps]# mkdir -p /var/temp/nginx/client
安装nginx的依赖包
xxxxxxxxxx
[root@node1 apps]# yum -y install gcc make automake pcre-devel zlib zlib-devel openssl openssl-devel
设置初始化参数
xxxxxxxxxx
[root@node1 apps]# cd nginx-1.20.1
[root@node1 nginx-1.20.1]# ./configure \
--prefix=/usr/local/nginx \
--pid-path=/usr/local/nginx/logs/nginx.pid \
--error-log-path=/usr/local/nginx/logs/error.log \
--http-log-path=/usr/local/nginx/logs/access.log \
--with-http_ssl_module \
--with-http_gzip_static_module \
--http-client-body-temp-path=/var/temp/nginx/client \
--http-proxy-temp-path=/var/temp/nginx/proxy \
--http-fastcgi-temp-path=/var/temp/nginx/fastcgi \
--http-uwsgi-temp-path=/var/temp/nginx/uwsgi
xxxxxxxxxx
make && make install
xxxxxxxxxx
[root@node1 ~]# cd /usr/local/nginx/sbin/
[root@node1 sbin]# ls
nginx
[root@node1 sbin]# ./nginx
[root@node1 sbin]# ps aux|grep nginx