添加 Others/hysteria2/客户端-容器启动hysteria2.md
This commit is contained in:
parent
91818010b6
commit
a91d871921
1 changed files with 25 additions and 0 deletions
25
Others/hysteria2/客户端-容器启动hysteria2.md
Normal file
25
Others/hysteria2/客户端-容器启动hysteria2.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
## 配置文件
|
||||
```shell
|
||||
mkdir /etc/hysteria2
|
||||
cat > /etc/hysteria2/hysteria2.yaml << EOF
|
||||
server: example.com:443
|
||||
|
||||
auth: 87G9MoaEyqlNGzIzkiy3eMKk
|
||||
|
||||
bandwidth:
|
||||
up: 20 mbps
|
||||
down: 100 mbps
|
||||
|
||||
socks5:
|
||||
listen: 127.0.0.1:1080
|
||||
|
||||
http:
|
||||
listen: 127.0.0.1:8080
|
||||
EOF
|
||||
```
|
||||
|
||||
## 启动
|
||||
```shell
|
||||
docker pull tobyxdd/hysteria
|
||||
docker run -td --restart always --name hysteria2 --network=host -v /etc/hysteria2/hysteria2.yaml:/etc/hysteria2.yaml tobyxdd/hysteria -c /etc/hysteria2.yaml
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue