安装Java
https://blog.csdn.net/bhwqq/article/details/121115777
下载安装包
wget http://halo.ryanc.cc/release/halo-latest.jar
运行
nohup java -jar halo-latest.jar &
用程序后台自带的备份 或者将个人主目录下/root/.halo/打包备份,重新搭建的时候,还原,或者云平台商提供定时的镜像快照策略
nginx代理配置
upstream blog{ server 127.0.0.1:8090; } server{ listen 80; server_name pan.19910813.cn; location /{ proxy_pass http://localhost:8080; } } server { listen 80; server_name www.19910813.cn blog.19910813.cn 19910813.cn; #charset koi8-r; location /netdisk{ rewrite ^/(.*) http://pan.19910813.cn/ permanent; } location /{ #root html; #index index.html index.htm; proxy_pass http://blog/; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)