时间:2023-06-11 22:57:02 | 来源:网站运营
时间:2023-06-11 22:57:02 来源:网站运营
Halo博客搭建-搭建个人博客网站,简洁大方,美观现代化:## Halo博客介绍$ wget https://dl.halo.run/release/halo-1.5.2.jar$ java -jar halo-1.5.2.jar
click https://dl.halo.run/release/halo-1.5.2.jar to download.$ java -jar halo-1.5.2.jar
$ docker pull halohub/halo:1.5.2$ docker run -it -d --name halo -p 8090:8090 -v ~/.halo:/root/.halo halohub/halo:1.5.2
## Halo博客搭建sudo -i
```yum -y update
```yum install wget curl vim git
```mkdir ~/.halo && cd ~/.halo
```wget https://dl.halo.run/config/application-template.yaml -O ./application.yaml
```vim application.yaml
```docker pull halohub/halo:1.5.2
```docker run -it -d --name halo -p 8090:8090 -v ~/.halo:/root/.halo --restart=unless-stopped halohub/halo:1.5.2
upstream halo { server 127.0.0.1:8090;} location ~ .*/.(gif|jpg|jpeg|png|bmp|swf)$ { proxy_pass http://halo; expires 30d; error_log /dev/null; access_log off; } location ~ .*/.(js|css)?$ { proxy_pass http://halo; expires 12h; error_log /dev/null; access_log off; } location / { proxy_pass http://halo; proxy_set_header HOST $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
#### 6、搭建成功效果关键词:大方,美观,现代化,简洁