服务器后台服务更新的笔记
This commit is contained in:
parent
bcb66f58f7
commit
d74af183f0
|
@ -0,0 +1,44 @@
|
|||
# 更新gitea
|
||||
|
||||
[gitea发布地址](https://github.com/go-gitea/gitea/releases) ,下载二进制包。
|
||||
|
||||
下载到本地的话,上传文件到服务器命令:
|
||||
|
||||
```shell
|
||||
scp [-P port] <filepath> [username@]<host>:<gitea bin path>
|
||||
```
|
||||
|
||||
服务器下载命令:
|
||||
|
||||
```shell
|
||||
wget <url>
|
||||
```
|
||||
|
||||
升级命令:
|
||||
|
||||
```shell
|
||||
cd <gitea bin path>
|
||||
service gitea stop
|
||||
mv gitea gitea_old
|
||||
mv <new gitea> gitea
|
||||
service gitea start
|
||||
service gitea status
|
||||
```
|
||||
|
||||
[gitea官方文档地址](https://docs.gitea.io/en-us/install-from-binary/#updating-to-a-new-version)
|
||||
|
||||
# 更新frp
|
||||
|
||||
[frp发布地址](https://github.com/fatedier/frp/releases)
|
||||
|
||||
```shell
|
||||
service frps stop
|
||||
cd ~
|
||||
wget https://github.com/fatedier/frp/releases/download/v0.38.0/frp_0.38.0_linux_amd64.tar.gz
|
||||
tar zxvf frp_0.38.0_linux_amd64.tar.gz
|
||||
mv /usr/local/frp/ /usr/local/frp_old
|
||||
mv frp_0.38.0_linux_amd64 /usr/local/frp
|
||||
cp /usr/local/frp_old/frps.ini /usr/local/frp/frps.ini
|
||||
service frps start
|
||||
service frps status
|
||||
```
|
Loading…
Reference in New Issue