首页 > 系统相关 >Nginx - [02] 安装部署

Nginx - [02] 安装部署

时间:2025-02-16 18:41:12浏览次数:9  
标签:02 nginx 部署 make Nginx 80 安装

官网下载地址:http://nginx.org/en/download.html

 

001 || 安装[windows]

解压之后,在命令提示符窗口启动nginx.exe

在浏览器访问80端口:localhost:80

002 || 安装[linux]

1、下载tar包解压后执行./configure

2、执行make、make install

3、执行whereis nginx查找

4、在/usr/local/nginx/sbin下执行./nginx即可启动

 

003 || 常用命令

cd /usr/local/nginx/sbin/
# 启动
./nginx
# 停止
./nginx -s stop
# 安全退出
./nginx -s quit
# 重新加载配置文件
./nginx -s reload
# 查看nginx进程
ps aux|grep nginx

 

 

 

 

标签:02,nginx,部署,make,Nginx,80,安装
From: https://www.cnblogs.com/houhuilinblogs/p/18718527

相关文章