Skip to content

Commit 7f6228b

Browse files
committed
.
1 parent e89782b commit 7f6228b

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ Manual
322322
- [nc](/cmd/n/nc.md): TCP / UDP connect & listen
323323
- [netstat](/cmd/n/network-status.md): show network status
324324
- [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
326327
- [nslookup](/cmd/n/nslookup.md): query Internet name servers interactively
327328
- [os](/cmd/o/os.md): show os info - _not a command_
328329
- [output](/cmd/o/output.md): redirect output - _not a command_

cmd/n/nginx.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
```

0 commit comments

Comments
 (0)