mirror of
https://github.com/XTLS/Xray-install.git
synced 2026-01-07 07:59:49 +00:00
56 lines
657 B
Markdown
56 lines
657 B
Markdown
# Xray-install for Alpine Linux
|
|
|
|
[English](README.md) | [简体中文](README_zh-Hans.md) | 繁體中文
|
|
|
|
## 安裝 Xray
|
|
|
|
#### 安裝 cURL
|
|
|
|
```sh
|
|
apk add curl
|
|
```
|
|
|
|
#### 下載安裝腳本
|
|
|
|
```sh
|
|
curl -O -L https://github.com/XTLS/Xray-install/raw/main/alpinelinux/install-release.sh
|
|
```
|
|
|
|
#### 執行安裝腳本
|
|
|
|
```sh
|
|
ash install-release.sh
|
|
```
|
|
|
|
## 管理指令
|
|
|
|
#### 啟用 Xray 服務 (開機自啟)
|
|
|
|
```sh
|
|
rc-update add xray
|
|
```
|
|
|
|
#### 停用 Xray 服務 (取消自啟)
|
|
|
|
```sh
|
|
rc-update del xray
|
|
```
|
|
|
|
#### 啟動 Xray
|
|
|
|
```sh
|
|
rc-service xray start
|
|
```
|
|
|
|
#### 關閉 Xray
|
|
|
|
```sh
|
|
rc-service xray stop
|
|
```
|
|
|
|
#### 重啟 Xray
|
|
|
|
```sh
|
|
rc-service xray restart
|
|
```
|