zhouer 发表于 2018-11-14 06:40:37

1.Nginx基础(一)

# nginx -t # 测试语法  
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  
nginx: configuration file /etc/nginx/nginx.conf test is successful
  

  
# nginx -s reload # 重载
  

  
# ss -tnl # 查看端口8080和8088
  
State       Recv-Q Send-Q                                    Local Address:Port                                                   Peer Address:Port
  
LISTEN      0      25                                                      *:514                                                               *:*
  
LISTEN      0      128                                                   *:8080                                                                *:*
  
LISTEN      0      128                                                   *:80                                                                  *:*
  
LISTEN      0      128                                                   *:22                                                                  *:*
  
LISTEN      0      128                                             127.0.0.1:631                                                               *:*
  
LISTEN      0      128                                                   *:8088                                                                *:*
  
LISTEN      0      100                                             127.0.0.1:25                                                                  *:*
  
LISTEN      0      128                                             127.0.0.1:6010                                                                *:*
  
LISTEN      0      25                                                   :::514                                                                :::*
  
LISTEN      0      128                                                    :::22                                                               :::*
  
LISTEN      0      128                                                   ::1:631                                                                :::*
  
LISTEN      0      100                                                   ::1:25                                                               :::*
  
LISTEN      0      128                                                   ::1:6010                                                               :::*


页: [1]
查看完整版本: 1.Nginx基础(一)