You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

490 lines
23 KiB
Plaintext

Authorized users only. All activities may be monitored and reported.
Activate the web console with: systemctl enable --now cockpit.socket
Last login: Sun Apr 27 17:57:43 2025 from 10.42.0.12
[root@localhost ~]# tiup cluster display tidb-cluster
Cluster type: tidb
Cluster name: tidb-cluster
Cluster version: v8.5.1
Deploy user: tidb
SSH type: builtin
Dashboard URL: http://10.42.0.1:2379/dashboard
Grafana URL: http://10.42.0.1:3000
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
-- ---- ---- ----- ------- ------ -------- ----------
10.42.0.1:9093 alertmanager 10.42.0.1 9093/9094 linux/aarch64 Up /tidb-data/alertmanager-9093 /tidb-deploy/alertmanager-9093
10.42.0.1:3000 grafana 10.42.0.1 3000 linux/aarch64 Up - /tidb-deploy/grafana-3000
10.42.0.1:2379 pd 10.42.0.1 2379/2380 linux/aarch64 Up|L|UI /tidb-data/pd-2379 /tidb-deploy/pd-2379
10.42.0.1:9090 prometheus 10.42.0.1 9090/12020 linux/aarch64 Up /tidb-data/prometheus-9090 /tidb-deploy/prometheus-9090
10.42.0.1:4000 tidb 10.42.0.1 4000/10080 linux/aarch64 Up - /tidb-deploy/tidb-4000
10.42.0.1:20160 tikv 10.42.0.1 20160/20180 linux/aarch64 Up /tidb-data/tikv-20160 /tidb-deploy/tikv-20160
Total nodes: 6
[root@localhost ~]# ps -ef | grep tidb
tidb 2005 1 0 13:46 ? 00:00:00 bin/alertmanager/alertmanager --config.file=conf/alertmanager.yml --storage.path=/tidb-data/alertmanager-9093 --data.retention=120h --log.level=info --web.listen-address=0.0.0.0:9093 --web.external-url=http://10.42.0.1:9093 --cluster.peer=10.42.0.1:9094 --cluster.listen-address=10.42.0.1:9094
tidb 2006 1 0 13:46 ? 00:00:00 bin/blackbox_exporter/blackbox_exporter --web.listen-address=:9115 --log.level=info --config.file=conf/blackbox.yml
tidb 2007 1 5 13:46 ? 00:00:14 bin/bin/grafana-server --homepath=/tidb-deploy/grafana-3000/bin --config=/tidb-deploy/grafana-3000/conf/grafana.ini
tidb 2009 1 0 13:46 ? 00:00:01 bin/node_exporter/node_exporter --web.listen-address=:9100 --collector.tcpstat --collector.mountstats --collector.meminfo_numa --collector.buddyinfo --collector.vmstat.fields=^.* --log.level=info
tidb 2010 1 22 13:46 ? 00:00:54 bin/pd-server --name=pd-10.42.0.1-2379 --client-urls=http://0.0.0.0:2379 --advertise-client-urls=http://10.42.0.1:2379 --peer-urls=http://0.0.0.0:2380 --advertise-peer-urls=http://10.42.0.1:2380 --data-dir=/tidb-data/pd-2379 --initial-cluster=pd-10.42.0.1-2379=http://10.42.0.1:2380 --config=conf/pd.toml --log-file=/tidb-deploy/pd-2379/log/pd.log
tidb 2011 1 24 13:46 ? 00:00:58 bin/prometheus/prometheus --config.file=/tidb-deploy/prometheus-9090/conf/prometheus.yml --web.listen-address=:9090 --web.external-url=http://10.42.0.1:9090/ --web.enable-admin-api --log.level=info --storage.tsdb.path=/tidb-data/prometheus-9090 --storage.tsdb.retention=30d
tidb 2013 1 6 13:46 ? 00:00:16 bin/tidb-server -P 4000 --status=10080 --host=0.0.0.0 --advertise-address=10.42.0.1 --store=tikv --initialize-insecure --path=10.42.0.1:2379 --log-slow-query=/tidb-deploy/tidb-4000/log/tidb_slow_query.log --config=conf/tidb.toml --log-file=/tidb-deploy/tidb-4000/log/tidb.log
tidb 2014 1 10 13:46 ? 00:00:24 bin/tikv-server --addr 0.0.0.0:20160 --advertise-addr 10.42.0.1:20160 --status-addr 0.0.0.0:20180 --advertise-status-addr 10.42.0.1:20180 --pd 10.42.0.1:2379 --data-dir /tidb-data/tikv-20160 --config conf/tikv.toml --log-file /tidb-deploy/tikv-20160/log/tikv.log
tidb 2018 2005 0 13:46 ? 00:00:00 /bin/bash /tidb-deploy/alertmanager-9093/scripts/run_alertmanager.sh
tidb 2019 2018 0 13:46 ? 00:00:00 tee -i -a /tidb-deploy/alertmanager-9093/log/alertmanager.log
tidb 2024 2006 0 13:46 ? 00:00:00 /bin/bash /tidb-deploy/monitor-9100/scripts/run_blackbox_exporter.sh
tidb 2026 2009 0 13:46 ? 00:00:00 /bin/bash /tidb-deploy/monitor-9100/scripts/run_node_exporter.sh
tidb 2027 2024 0 13:46 ? 00:00:00 tee -i -a /tidb-deploy/monitor-9100/log/blackbox_exporter.log
tidb 2028 2026 0 13:46 ? 00:00:00 tee -i -a /tidb-deploy/monitor-9100/log/node_exporter.log
tidb 2030 2011 0 13:46 ? 00:00:00 /bin/bash scripts/ng-wrapper.sh
tidb 2031 2011 0 13:46 ? 00:00:00 /bin/bash /tidb-deploy/prometheus-9090/scripts/run_prometheus.sh
tidb 2032 2031 0 13:46 ? 00:00:00 tee -i -a /tidb-deploy/prometheus-9090/log/prometheus.log
tidb 2035 2030 1 13:46 ? 00:00:04 bin/ng-monitoring-server --config /tidb-deploy/prometheus-9090/conf/ngmonitoring.toml
root 4537 4346 0 13:51 pts/0 00:00:00 grep tidb
[root@localhost ~]# systemctl status redis
● redis.service - Redis In-Memory Data Store
Loaded: loaded (/etc/systemd/system/redis.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2025-04-29 13:46:59 CST; 4min 11s ago
Process: 1981 ExecStart=/media/redis/redis-5.0.5/src/redis-server /media/redis/redis-5.0.5/redis.conf > Main PID: 1989 (redis-server)
Tasks: 4
Memory: 13.8M
CGroup: /system.slice/redis.service
└─1989 /media/redis/redis-5.0.5/src/redis-server 127.0.0.1:6379
4月 29 13:46:59 localhost.localdomain systemd[1]: Starting Redis In-Memory Data Store...
4月 29 13:46:59 localhost.localdomain systemd[1]: Started Redis In-Memory Data Store.
lines 1-12/12 (END)
[root@localhost ~]# rm /media/tao_iot/dist
rm: 无法删除 '/media/tao_iot/dist': 是一个目录
[root@localhost ~]# systemctl status nginx
● nginx.service - nginx service
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2025-04-29 13:46:59 CST; 7min ago
Process: 1980 ExecStart=/usr/local/nginx/sbin/nginx (code=exited, status=0/SUCCESS)
Main PID: 1988 (nginx)
Tasks: 2
Memory: 7.5M
CGroup: /system.slice/nginx.service
├─1988 nginx: master process /usr/local/nginx/sbin/nginx
└─1993 nginx: worker process
4月 29 13:46:59 localhost.localdomain systemd[1]: Starting nginx service...
4月 29 13:46:59 localhost.localdomain systemd[1]: Started nginx service.
[root@localhost ~]# rm -r /media/tao_iot/dist
rm是否进入目录'/media/tao_iot/dist'? y
rm是否删除普通文件 '/media/tao_iot/dist/favicon.ico'y
rm是否进入目录'/media/tao_iot/dist/html'? y
rm是否删除普通文件 '/media/tao_iot/dist/html/ie.html'y
rm是否删除普通文件 '/media/tao_iot/dist/html/ie.html.gz'y
rm是否删除目录 '/media/tao_iot/dist/html'y
rm是否删除普通文件 '/media/tao_iot/dist/index.html'y
rm是否删除普通文件 '/media/tao_iot/dist/index.html.gz'y
rm是否进入目录'/media/tao_iot/dist/model'? y
rm是否删除普通文件 '/media/tao_iot/dist/model/daxingjichang.mtl'y
rm是否删除普通文件 '/media/tao_iot/dist/model/daxingjichang.obj'y
rm是否删除普通文件 '/media/tao_iot/dist/model/jiaodongjichang.mtl'y
rm是否删除普通文件 '/media/tao_iot/dist/model/jiaodongjichang.obj'y
rm是否进入目录'/media/tao_iot/dist/model/maps'? y
rm是否删除普通文件 '/media/tao_iot/dist/model/maps/3d66Model-1176892-files-21.JPG'y
rm是否删除普通文件 '/media/tao_iot/dist/model/maps/3d66Model-1176892-files-23.jpg'y
rm是否删除普通文件 '/media/tao_iot/dist/model/maps/3d66Model-1176892-files-3.jpg'y
rm是否删除普通文件 '/media/tao_iot/dist/model/maps/wenli2.png'y
rm是否删除目录 '/media/tao_iot/dist/model/maps'y
rm是否删除目录 '/media/tao_iot/dist/model'y
rm是否删除普通文件 '/media/tao_iot/dist/robots.txt'y
rm是否进入目录'/media/tao_iot/dist/static'? y
rm是否进入目录'/media/tao_iot/dist/static/css'? y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/app.94234889.css'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/app.94234889.css.gz'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-05d75466.9dad4dc5.css'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-05d75466.9dad4dc5.css.gz'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-082d8c34.49e9b769.css'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-082d8c34.49e9b769.css.gz'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-10f4b0e8.772dd061.css'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-10f4b0e8.772dd061.css.gz'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-17ee1abe.ecea2c5f.css'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-17ee1abe.ecea2c5f.css.gz'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-18f96050.03c3a260.css'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-2025613a.d63b57ad.css'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-26395caf.470fc1fa.css'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-26395caf.470fc1fa.css.gz'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-291854d3.da0f15ef.css'y
rm是否删除普通文件 '/media/tao_iot/dist/static/css/chunk-291854d3.da0f15ef.css.gz'^C
[root@localhost ~]# rm -rf /media/tao_iot/dist
[root@localhost ~]# rm -rf /media/tao_iot/haiwei-admin.jar
[root@localhost ~]# mkdir -p /media/tao_iot/dist
[root@localhost ~]# unzip -oq dist.zip -d /media/tao_iot/dist
unzip: cannot find or open dist.zip, dist.zip.zip or dist.zip.ZIP.
[root@localhost ~]# cd /media/tao_iot
[root@localhost tao_iot]# unzip -oq dist.zip -d /media/tao_iot/dist
[root@localhost tao_iot]# systemctl status nginx
● nginx.service - nginx service
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2025-04-29 13:46:59 CST; 29min ago
Process: 1980 ExecStart=/usr/local/nginx/sbin/nginx (code=exited, status=0/SUCCESS)
Main PID: 1988 (nginx)
Tasks: 2
Memory: 9.5M
CGroup: /system.slice/nginx.service
├─1988 nginx: master process /usr/local/nginx/sbin/nginx
└─1993 nginx: worker process
4月 29 13:46:59 localhost.localdomain systemd[1]: Starting nginx service...
4月 29 13:46:59 localhost.localdomain systemd[1]: Started nginx service.
[root@localhost tao_iot]# systemctl daemon-reload
[root@localhost tao_iot]# cat /usr/local/nginx/conf/nginx.conf
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
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;
#gzip on;
# 开启gzip压缩
gzip on;
# 不压缩临界值大于1K的才压缩一般不用改
gzip_min_length 1k;
# 压缩缓冲区
gzip_buffers 16 64K;
# 压缩版本默认1.1前端如果是squid2.5请使用1.0
gzip_http_version 1.1;
# 压缩级别1-10数字越大压缩的越好时间也越长
gzip_comp_level 3;
# 进行压缩的文件类型
gzip_types text/plain application/x-javascript text/css application/xml application/javascript;
# 跟Squid等缓存服务有关on的话会在Header里增加"Vary: Accept-Encoding"
gzip_vary on;
# IE6对Gzip不怎么友好不给它Gzip了
gzip_disable "MSIE [1-6]\.";
server {
listen 6061;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /media/tao_iot/dist;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location /prod-api/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:8020/;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}
[root@localhost tao_iot]# /usr/local/nginx/sbin/nginx -s reload # 重新加载配置
[root@localhost tao_iot]# ps aux | grep nginx
root 1988 0.0 0.0 20224 3648 ? Ss 13:46 0:00 nginx: master process /usr/local/nginx/sbin/nginx
nobody 5920 0.0 0.0 32256 4736 ? S 14:21 0:00 nginx: worker process
root 6244 0.0 0.0 214144 1600 pts/0 S+ 14:22 0:00 grep nginx
[root@localhost tao_iot]# ls -la /media/tao_iot/dist/index.html
-rw-r--r-- 1 root root 16667 4月 29 13:49 /media/tao_iot/dist/index.html
[root@localhost tao_iot]# getenforce
Disabled
[root@localhost tao_iot]# vi /etc/systemd/system/haiwei-admin.service
E325: ATTENTION
Found a swap file by the name "/etc/systemd/system/.haiwei-admin.service.swp"
owned by: root dated: 日 4月 27 17:57:40 2025
file name: /etc/systemd/system/haiwei-admin.service
modified: YES
user name: root host name: localhost.localdomain
process ID: 14448
While opening file "/etc/systemd/system/haiwei-admin.service"
dated: 二 4月 29 14:25:17 2025
NEWER than swap file!
(1) Another program may be editing the same file. If this is the case,
be careful not to end up with two different instances of the same
file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /etc/systemd/system/haiwei-admin.service"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/etc/systemd/system/.haiwei-admin.service.swp"
to avoid this message.
"/etc/systemd/system/haiwei-admin.service" 15L, 277C
Press ENTER or type command to continue
[root@localhost tao_iot]# vi /etc/systemd/system/haiwei-admin.service
[root@localhost tao_iot]# rm /etc/systemd/system/.haiwei-admin.service.swp
rm是否删除普通文件 '/etc/systemd/system/.haiwei-admin.service.swp'y
[root@localhost tao_iot]# vi /etc/systemd/system/haiwei-admin.service
[root@localhost tao_iot]# vi /etc/systemd/system/haiwei-admin.service
[root@localhost tao_iot]# chmod 644 /etc/systemd/system/haiwei-admin.service
[root@localhost tao_iot]# systemctl daemon-reload
[root@localhost tao_iot]# systemctl enable haiwei-admin.service
Created symlink /etc/systemd/system/multi-user.target.wants/haiwei-admin.service → /etc/systemd/system/haiwei-admin.service.
[root@localhost tao_iot]# systemctl status haiwei-admin.service
● haiwei-admin.service - Haiwei Admin Service
Loaded: loaded (/etc/systemd/system/haiwei-admin.service; enabled; vendor preset: disabled)
Active: inactive (dead)
[root@localhost tao_iot]# systemctl start haiwei-admin.service
[root@localhost tao_iot]# systemctl status haiwei-admin.service
● haiwei-admin.service - Haiwei Admin Service
Loaded: loaded (/etc/systemd/system/haiwei-admin.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2025-04-29 14:28:55 CST; 4s ago
Main PID: 6399 (java)
Tasks: 112
Memory: 481.6M
CGroup: /system.slice/haiwei-admin.service
└─6399 /usr/bin/java -jar /media/tao_iot/haiwei-admin.jar
4月 29 14:28:57 localhost.localdomain java[6399]: // \ \ `-. \_ __\ /__ _/ .-` / / >4月 29 14:28:57 localhost.localdomain java[6399]: // ========`-.____`-.___\_____/___.-`____.-'=====>4月 29 14:28:57 localhost.localdomain java[6399]: // `=---=' >4月 29 14:28:57 localhost.localdomain java[6399]: // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^>4月 29 14:28:57 localhost.localdomain java[6399]: // 佛祖保佑 永不宕机 永无BUG >4月 29 14:28:57 localhost.localdomain java[6399]: //////////////////////////////////////////////////////>4月 29 14:28:57 localhost.localdomain java[6399]: 14:28:57.724 [main] INFO c.o.RuoYiApplication - [logS>4月 29 14:28:57 localhost.localdomain java[6399]: 14:28:57.731 [main] DEBUG c.o.RuoYiApplication - [logS>4月 29 14:28:57 localhost.localdomain java[6399]: 14:28:57.732 [background-preinit] INFO o.h.v.i.util.V>4月 29 14:28:57 localhost.localdomain java[6399]: 14:28:57.733 [main] INFO c.o.RuoYiApplication - [logS>
[root@localhost tao_iot]# cat /usr/local/nginx/conf/nginx.conf
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
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;
#gzip on;
# 开启gzip压缩
gzip on;
# 不压缩临界值大于1K的才压缩一般不用改
gzip_min_length 1k;
# 压缩缓冲区
gzip_buffers 16 64K;
# 压缩版本默认1.1前端如果是squid2.5请使用1.0
gzip_http_version 1.1;
# 压缩级别1-10数字越大压缩的越好时间也越长
gzip_comp_level 3;
# 进行压缩的文件类型
gzip_types text/plain application/x-javascript text/css application/xml application/javascript;
# 跟Squid等缓存服务有关on的话会在Header里增加"Vary: Accept-Encoding"
gzip_vary on;
# IE6对Gzip不怎么友好不给它Gzip了
gzip_disable "MSIE [1-6]\.";
server {
listen 6061;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /media/tao_iot/dist;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location /prod-api/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:8020/;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}
[root@localhost tao_iot]#
[root@localhost nginx]# /usr/local/nginx/sbin/nginx -t # 检查配置是否有语法错误
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
[root@localhost nginx]# /usr/local/nginx/sbin/nginx -s reload # 重新加载配置
[root@localhost nginx]#