安装完成以后打开网站403
By 青歌
at 2018-01-01 23:34 • 1414次点击
安装完成以后打开网站403 [root@izj6cdc goyoubbs]# ./goyoubbs 2018/01/01 23:33:34 MainDomain: http://127.0.0.1:8082 11 2018/01/01 23:33:34 youdb Connect to mydata.db 2018/01/01 23:33:34 Web server Listen port 8082 2018/01/01 23:33:34 listen tcp :8082: bind: address already in use
server {
listen 80;
server_name yourdomain.com;
charset utf-8;
access_log /logs/youbbs/access.log;
error_log /logs/youbbs/error.log;
client_max_body_size 100M;
client_body_buffer_size 100M;
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8082;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
nginx 配置示例 这个除了后面3行 前面的是程序必须要的配置是吗
青歌 at 2018-01-02 12:05
5
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8082;
}
这段是核心
ego008 at 2018-01-02 12:15
7
@ego008 每次停止以后 重新启动报错 ./goyoubbs
2018/01/02 13:10:17 MainDomain: http://127.0.0.1:8082 11 2018/01/02 13:10:18 Connect Error: timeout
青歌 at 2018-01-02 13:11
8
Connect Error: timeout 是数据库连不上,看看进程是不是已经启动了 SSH关闭了网站就打不开 可以在后面加个字符 "&"
./goyoubbs &
然后关闭ssh
ego008 at 2018-01-02 13:54
11
AutoGetTag: true
GetTagApi: "http://youbbs.sinaapp.com/fencigoapi.php"
这个好像是打开的 还是不行
青歌 at 2018-01-02 18:03
14
请 登录 后发表评论