ubuntu安装nginx

一、安装依赖包
sudo apt-get install build-essential
sudo apt-get install zlib1g-dev
sudo apt-get install libtool
sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install openssl


二、下载、安装、启动nginx

1.下载安装 
sudo wget http://nginx.org/download/nginx-1.13.6.tar.gz
tar -zxvf nginx-1.13.6.tar.gz
sudo tar -zxvf nginx-1.13.6.tar.gz
cd nginx-1.13.6/
sudo ./configure --prefix=/usr/local/nginx
sudo make
sudo make install

2.启动

sudo /usr/local/nginx/sbin/nginx -c /wj/nginx/nginx-1.13.6/conf/nginx.conf

ps -ef | grep nginx

阅读更多
想对作者说点什么? 我来说一句
相关热词

没有更多推荐了,返回首页