该博客系统是rrdzs在GitHub上开源的,通过简单的几步就成功部署。
在上一步中,您可以找到以下链接:
1、https://www.q cloud.com/community/article/290084001488247673? from source=GW zcw.59375.59375.59375
2,https://github.com/otale/tale/wiki
3、https://www.legic.xyz/article/33
博客安装完成后,如果想访问更酷的内容,可以在临时云中购买域名,然后将域名解析为服务器的公共IP地址。 tale的默认端口为9000,每次访问时都会在IP地址后添加' :9000 '。 这很辛苦吧? 另外,要用域名进行访问,必须进行端口号,这样不太酷。 嗯,解决方法如下。
1、将nginx下载到服务器:
sudo apt-get install nginx
2、修改nginx的默认设置:
SDO vim/etc/nginx/sites -可用/默认
注释掉其中的几行,并在“location /”中添加一行。 以下是示例。
服务器{
listen 80 default_server;
listen [ :3360 ] :80 default _ server IPv6 only=on;
#根/usr/share/nginx/html;
#index index.html index.htm;
# makesiteaccessiblefrom http://localhost /
server_name localhost;
位置/{
# firstattempttoserverequestasfile,then
# as directory,then fall back to displaying a 404。
#try_files $uri $uri/=404;
proxy _ pass http://0.0.0.0:9000;
# uncommenttoenablenaxsionthislocation
# include /etc/nginx/naxsi.rules
}
}
添加到此处的' proxy _ pass http://0.0.0.0:9000;' 的IP地址和端口号可以通过此命令查询。
netstat -ntlp | grep LISTEN
3、保存并退出后重新启动nginx即可:
sudo服务nginx restart