docker 日志:
[root@cjz ~]# docker logs pipe
D 2019/05/22 10:27:08 confs.go:137: ${home} [/root]
D 2019/05/22 10:27:08 confs.go:155: ${time} [1558492028815005012]
D 2019/05/22 10:27:08 confs.go:190: configurations [&model.Configuration{Server:"http://blog.cjzshilong.cn:5897", StaticServer:"http://blog.cjzshilong.cn:5897", StaticResourceVersion:"1557286834435", LogLevel:"debug", ShowSQL:false, SessionSecret:"YI9JEY27vRjrhoNyp7mzs3E5jyYcDKg7", SessionMaxAge:86400, RuntimeMode:"prod", SQLite:"", MySQL:"pipe:pipe@(127.0.0.1:3306)/pipe?charset=utf8mb4&parseTime=True&loc=Local", Port:"5897", AxiosBaseURL:"/api", MockServer:"http://localhost:8888"}]
I 2019/05/22 10:27:08 markdowns.go:59: [markdown-http] is not available, uses built-in [blackfriday] for markdown processing
D 2019/05/22 10:27:08 themes.go:49: loaded [7] themes
D 2019/05/22 10:27:08 db.go:53: used [MySQL] as underlying database
I 2019/05/22 10:27:09 main.go:80: Pipe (v1.8.9) is running [http://blog.cjzshilong.cn:5897]
端口已经启动:
[root@cjz ~]# netstat -antup | grep 5897
tcp6 0 0 :::5897 :::* LISTEN 30606/pipe
nginx 没配置反代,带端口访问不行:
server {
listen 80;
server_name blog.cjzshilong.cn;
location / {
root html;
index index.html index.htm;
}