mirror of
https://github.com/XTLS/Xray-install.git
synced 2025-12-10 02:09:52 +00:00
56 lines
706 B
Markdown
56 lines
706 B
Markdown
# Xray-install for Alpine Linux
|
|
|
|
English | [简体中文](README_zh-Hans.md) | [繁體中文](README_zh-Hant.md)
|
|
|
|
## Install Xray
|
|
|
|
#### Install cURL
|
|
|
|
```sh
|
|
apk add curl
|
|
```
|
|
|
|
#### Download Installation Script
|
|
|
|
```sh
|
|
curl -O -L https://github.com/XTLS/Xray-install/raw/main/alpinelinux/install-release.sh
|
|
```
|
|
|
|
#### Run Installation Script
|
|
|
|
```sh
|
|
ash install-release.sh
|
|
```
|
|
|
|
## Management Commands
|
|
|
|
#### Enable Xray Service (Auto-start on Boot)
|
|
|
|
```sh
|
|
rc-update add xray
|
|
```
|
|
|
|
#### Disable Xray Service (Remove from Auto-start)
|
|
|
|
```sh
|
|
rc-update del xray
|
|
```
|
|
|
|
#### Start Xray
|
|
|
|
```sh
|
|
rc-service xray start
|
|
```
|
|
|
|
#### Stop Xray
|
|
|
|
```sh
|
|
rc-service xray stop
|
|
```
|
|
|
|
#### Restart Xray
|
|
|
|
```sh
|
|
rc-service xray restart
|
|
```
|