系统相关
首页 > 系统相关> > Linux 下安装 Nginx

Linux 下安装 Nginx

作者:互联网

首先安装nginx前置软件

yum -y install gcc pcre-devel zlib-devel openssl openssl-devel

下载nginx软件安装包

cd /data/tmp
wget http://nginx.org/download/nginx-1.19.6.tar.gz
tar -zxvf nginx-1.19.6.tar.gz
cd nginx-1.19.6

设置安装目录为/usr/local/nginx

./configure --prefix=/usr/local/nginx
make
make install

启动nginx

/usr/local/nginx/sbin/nginx

标签:tar,nginx,local,1.19,Nginx,usr,Linux,devel,安装
来源: https://blog.csdn.net/y1534414425/article/details/113839537