352262 发表于 2018-11-14 13:48:33

Nginx负载均衡,ssl相关配置

# /usr/local/nginx/sbin/nginx -V  nginx version: nginx/1.12.2
  built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)
  built with OpenSSL 1.0.2k-fips26 Jan 2017
  TLS SNI support enabled
  configure arguments: --prefix=/usr/local/nginx --with-http_ssl_module
  # /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
  (reverse-i-search)`-s': openssl x509 -req -days 365 -in weixing.csr ^Cignkey weixing.key -out weixing.crt
  # /etc/init.d/nginx restart
  Restarting nginx (via systemctl):                        [确定]
  # netstat -lntp
  Active Internet connections (only servers)
  Proto Recv-Q Send-Q Local Address         Foreign Address         State       PID/Program name
  tcp      0      0 0.0.0.0:80            0.0.0.0:*               LISTEN      4230/nginx: master
  tcp      0      0 0.0.0.0:22            0.0.0.0:*               LISTEN      919/sshd
  tcp      0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1160/master
  tcp      0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      4230/nginx: master
  tcp6       0      0 :::22                   :::*                  LISTEN      919/sshd
  tcp6       0      0 ::1:25                  :::*                  LISTEN      1160/master

页: [1]
查看完整版本: Nginx负载均衡,ssl相关配置