[Linux] - [转]*** Python版一键安装脚本

原文:https://teddysun.com/357.html

 


 

本脚本适用环境:
系统支持:CentOS 6,7,Debian,Ubuntu
内存要求:≥128M
日期:2016 年 08 月 18 日

关于本脚本:
一键安装 Python 版 *** 的最新版,同时安装了 Python 包管理工具 pip。
友情提示:如果你有问题,请先参考这篇《*** Troubleshooting》后再问。

 

默认配置:
服务器端口:自己设定(如不设定,默认为8989)
客户端端口:1080
密码:自己设定(如不设定,默认为teddysun.com)
备注:脚本默认创建单用户配置文件,如需配置多用户,安装完毕后参照下面的教程 sample 手动修改配置文件后重启即可。

客户端下载:
https://github.com/***/***-windows/releases

使用方法:
使用root用户登录,运行以下命令:

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/***_install/master/***.sh
chmod +x ***.sh
./***.sh 2>&1 | tee ***.log

安装完成后,脚本提示如下:

Congratulations, *** install completed!
Your Server IP:your_server_ip
Your Server Port:your_server_port
Your Password:your_password
Your Local IP:127.0.0.1
Your Local Port:1080
Your Encryption Method:aes-256-cfb

Welcome to visit:https://teddysun.com/342.html
Enjoy it!

卸载方法:
使用root用户登录,运行以下命令:

./***.sh uninstall

单用户配置文件 Sample(2015 年 08 月 28 日修正):
配置文件路径:/etc/***.json

{
    "server":"0.0.0.0",
    "server_port":8989,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"yourpassword",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

多用户多端口配置文件 Sample(2015 年 08 月 28 日修正):
配置文件路径:/etc/***.json

{
    "server":"0.0.0.0",
    "local_address":"127.0.0.1",
    "local_port":1080,
    "port_password":{
         "8989":"password0",
         "9001":"password1",
         "9002":"password2",
         "9003":"password3",
         "9004":"password4"
    },
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

使用命令(2015 年 08 月 28 日修正):
启动:/etc/init.d/*** start
停止:/etc/init.d/*** stop
重启:/etc/init.d/*** restart
状态:/etc/init.d/*** status

更多版本 *** 服务端一键安装脚本:
*** 版一键安装脚本(CentOS,Debian,Ubuntu)
CentOS 下 ***-libev 一键安装脚本
Debian 下 ***-libev 一键安装脚本
***-go 一键安装脚本(CentOS,Debian,Ubuntu)

参考链接:
https://teddysun.com/339.html

posted @ 2016-11-25 15:48  横渡  阅读(49)  评论(0)    收藏  举报