File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,8 @@ Manual
322
322
- [ nc] ( /cmd/n/nc.md ) : TCP / UDP connect & listen
323
323
- [ netstat] ( /cmd/n/network-status.md ) : show network status
324
324
- [ nl] ( /cmd/n/nl.md ) : number lines of files
325
- - [ nohup] ( cmd/n/nohup ) : invoke a utility immune to hangups
325
+ - [ nginx] ( /cmd/n/nginx.md ) : HTTP and reverse proxy server
326
+ - [ nohup] ( /cmd/n/nohup ) : invoke a utility immune to hangups
326
327
- [ nslookup] ( /cmd/n/nslookup.md ) : query Internet name servers interactively
327
328
- [ os] ( /cmd/o/os.md ) : show os info - _ not a command_
328
329
- [ output] ( /cmd/o/output.md ) : redirect output - _ not a command_
Original file line number Diff line number Diff line change
1
+ # nginx
2
+
3
+ HTTP and reverse proxy server, mail proxy server
4
+
5
+ ---
6
+
7
+ References
8
+
9
+ - ` man nginx `
10
+
11
+ ## Find config
12
+
13
+ e.g.
14
+
15
+ ``` bash
16
+ # 1. find nginx path
17
+ $ ps aux | grep nginx
18
+ root 25407 0.0 0.0 12392 1368 ? Ss Feb05 0:00 nginx: master process /usr/local/openresty/nginx/sbin/nginx -g daemon on; master_process on;
19
+ …
20
+
21
+ # 2. find config path
22
+ $ sudo /usr/local/openresty/nginx/sbin/nginx -t
23
+ nginx: the configuration file /usr/local/openresty/nginx/conf/nginx.conf syntax is ok
24
+ nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test is successful
25
+
26
+ # 3. view config
27
+ less /usr/local/openresty/nginx/conf/nginx.conf
28
+ ```
You can’t perform that action at this time.
0 commit comments