ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ***** ### 安装必须的软件 ``` yum install epel-release yum update yum install python-setuptools m2crypto supervisor easy_install pip pip install shadowsocks ``` ### 创建`/etc/shadowsocks.json`文件 ``` { "server":"0.0.0.0", "local_address":"127.0.0.1", "local_port":1080, "port_password":{ "8388":"******" }, "timeout":300, "method":"rc4-md5", "fast_open":false } ``` ### 修改 /etc/supervisord.conf 文件,添加以下内容到最后 ``` [program:shadowsocks] command=ssserver -c /etc/shadowsocks.json autostart=true autorestart=true user=root log_stderr=true logfile=/var/log/shadowsocks.log ``` ### 设置开机自启 修改 /etc/rc.local 文件,添加如下内容: ``` service supervisord start ``` ### 相关命令 启动服务: `ssserver -c /etc/shadowsocks.json -d start ` 停止服务: `ssserver -c /etc/shadowsocks.json -d stop` ### 开放端口 ``` firewall-cmd --zone=public --add-port=8390/tcp --permanent firewall-cmd --reload ``` ### 原文链接 [SS服务器搭建教程](https://blog.csdn.net/rational_thought/article/details/80783627)