//1.解压 tar -zxvf /usr/local/nginx-1.21.0 //2.进入刚解压的目录 cd nginx-1.21.0 //3.使用nginx默认配置安装 ./configure //4.安装 make; make install; //5.查找安装路径 whereis nginx //6.进入目录 cd /usr/local/nginx/sbin //7.启动nginx ./nginx //8.查看是否启动 ps -ef | grep nginx //安装完成
//1.解压 tar -zxvf /usr/local/nginx-1.21.0 //2.进入刚解压的目录 cd nginx-1.21.0 //3.使用nginx默认配置安装 ./configure //4.安装 make; make install; //5.查找安装路径 whereis nginx //6.进入目录 cd /usr/local/nginx/sbin //7.启动nginx ./nginx //8.查看是否启动 ps -ef | grep nginx //安装完成