目录
1、使用docker运行镜像
具体操作详见:
https://blog.csdn.net/qq_22041375/article/details/105578258
2、安装完配置nginx
修改nginx配置
server {
listen 443 ssl;
server_name localhost;
ssl on;
ssl_certificate /ssl/server.crt;
ssl_certificate_key /ssl/server.key;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
# 这是静态主页
location / {
root /www;
index index.html index.htm;
}
}
2.1、正式环境的配置
#user nobody;
worker_processes 8;
#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 /etc/nginx/mime.types;
#default_type application/octet-stream;
sendfile on;
#tcp_nopush on