From 71c4e1f0b536837ec75a7b3bde41263cdbddd223 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Mon, 7 Dec 2020 16:54:09 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=96=87=E6=A1=A3):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=B8=B8=E7=94=A8=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + documents/common_commands.md | 53 ++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 documents/common_commands.md diff --git a/README.md b/README.md index b9690d7..c309139 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ - TLS证书 【**/etc/v2ray-agent/tls**】 - Nginx配置文件 【**/etc/nginx/conf.d/alone.conf**】、Nginx伪装博客目录 【**/usr/share/nginx/html**】 +## [脚本常用命令](https://github.com/mack-a/v2ray-agent/blob/master/documents/common_commands.md) ## 安装脚本 ``` diff --git a/documents/common_commands.md b/documents/common_commands.md new file mode 100644 index 0000000..c725b4f --- /dev/null +++ b/documents/common_commands.md @@ -0,0 +1,53 @@ +# 常用命令 +## 启动脚本 +``` +vasma +``` + +## 服务管理 +### Xray-core、v2ray-core、trojan-go +- 重启 +``` +# xray +systemctl restart xray +# v2ray +systemctl restart v2ray +# trojan-go +systemctl restart trojan-go +``` + +- 启动 +```` +# xray +systemctl start xray +# v2ray +systemctl start v2ray +# trojan-go +systemctl start trojan-go +```` + +- 关闭 +``` +# xray +systemctl stop xray +# v2ray +systemctl stop v2ray +# trojan-go +systemctl stop trojan-go +``` + +### nginx +- 重启 +``` +nginx -s reload +``` + +- 启动 +```` +nginx +```` + +- 关闭 +``` +nginx -s stop +``` \ No newline at end of file