ubuntu16.04 下安装nginx
1.安装依赖项
安装openssl
sudo apt-get install openssl libssl-dev
安装pcre
sudo apt-get install libpcre3 libpcre3-dev
安装zlib
sudo apt-get install zlib1g-dev
2.将下载的linux版本nginx解压
tar -xvf nginx-1.14.2.tar.gz mv /nginx-1.14.2 nginx
3.执行配置
./configure
4.编译安装(默认安装在/usr/local/nginx)
make make install
5.启动nginx
/usr/local/nginx/sbin/nginx
6.访问nginx
http://IP:80
相关推荐
张立军的架构之路 2020-09-28
yongzhang 2020-07-19
nginxs 2020-11-14
Guanjs0 2020-11-13
小木兮子 2020-11-11
yserver 2020-11-11
ssihc0 2020-11-11
windle 2020-11-10
HanksWang 2020-11-10
liuchen0 2020-11-10
Freshairx 2020-11-10
ccschan 2020-11-10
liwf 2020-11-10
Guanjs0 2020-11-09
AderStep 2020-11-09
zrtlin 2020-11-09