[网络] 2025-04-27 圈点697
摘要:Python安装网络飞机服务器端配置
Python安装网络飞机服务器端配置步骤,如下。
,先了解一下 什么是网络飞机 ,
1,安装python,
注意添加环境变量。
2,安装ss,
默认python已经安装了pip,所以,可以直接在python中使用安装命令:
pip install simplejson(此可不安装)
pip install s-h-a-d-o-w-s-o-c-k-s
3,查看并配置ss
pip freeze 是查看命令
配置目录为:
python_path/lib/site-packages/s-h-a-d-o-w-s-o-c-k-s/config.json
内容如下:
{
"server":"0.0.0.0",
"server_port":8388,
"local_port":1080,
"password":"xoxxoo",
"timeout":600,
"method":"aes-256-cfb"
}
4,在cmd命令行界面用如下命令启动
s-s-s-e-r-v-e-r -c python_path\Lib\site-packages\s-h-a-d-o-w-s-o-c-k-s\config.json
由于上面配置了服务器的8388端口,我们可以用netstat命令检测8388端口是否打开
netstat -ano|findstr "8388"
Python安装SS服务器端配置服务器端配置完成。
备注:s-h-a-d-o-w-s-o-c-k-s无-;s-s-s-e-r-v-e-r无-。