要使用SSR搭建服务器,可以按照以下步骤进行
nmb3583344SuperFast加速器下载2026-07-20260
创建HTTP服务器: 在本地创建一个HTTP服务器:ssr server -h 127...1 -p 88 http http_only -p 844 这将创建一个在localhost的88端点运行的HTTP服务器。 创建HTTPS端点: 用HTTP服务器作为中间层,创建一个HTTPS端点:ssr serv...
-
创建HTTP服务器:
- 在本地创建一个HTTP服务器:
ssr server -h 127...1 -p 88 http http_only -p 844
这将创建一个在localhost的88端点运行的HTTP服务器。
- 在本地创建一个HTTP服务器:
-
创建HTTPS端点:
- 用HTTP服务器作为中间层,创建一个HTTPS端点:
ssr server -h 127...1 -p 844 https https_only -p 443
这将创建一个在localhost的844端点运行的HTTPS端点。
- 用HTTP服务器作为中间层,创建一个HTTPS端点:
-
调整访问权限:
- 确保只允许特定用户访问:
sudo su user@example.com
然后登录访问。
- 确保只允许特定用户访问:
-
停止服务器:
- 处理服务器状态:
ssr server stop -p 88 http_only ssr server stop -p 844 https_only
然后恢复权限:
sudo su user@example.com
- 处理服务器状态:
-
管理服务器状态:
- 使用
ssr server stop -d停止多个服务器。
- 使用
-
监控服务器:
- 使用
ssr -p查看服务器负载和状态。
- 使用
-
配置文件:
- 创建配置文件
ssr.conf:echo "HTTP server at 88" > ssr.conf
- 修改配置文件以调整访问权限。
- 创建配置文件
-
文件传输服务器(如有需求):
- 使用
ssr server -t创建一个FTP服务器:ssr server -t -h user@example.com -p 88 ftp ftp
- 使用
通过以上步骤,可以逐步搭建并管理HTTP和HTTPS服务器,确保它们的访问权限和状态正确。

相关文章








