https://nginx.org/en/docs/install.html
info
version: 1.20.1
address: 192.101.11.72
web-data: /home/chinalin-app/nginx1201
install path: /usr/local/nginx
config: /usr/local/nginx/conf/nginx.conf
download
wget https://nginx.org/download/nginx-1.20.1.tar.gz
install
https://nginx.org/en/docs/configure.html
./configure
make
make install
config
#user nobody;
worker_processes 2;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 10240;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server_tokens off;
include ./conf.d/*.conf;
}
config.d
hl-admin.conf hl-app.conf hl-cms.conf kocaamo.conf
web-data
hl-admin.conf: root /home/chinalin-app/nginx1201/hl-admin;
hl-app.conf: root /home/chinalin-app/nginx1201/hl-app;
hl-cms.conf: root /home/chinalin-app/nginx1201;
kocaamo.conf: root /home/chinalin-app/nginx1201/kocaamodist/;