ubuntu
作者:Harrandi 发布时间:July 13, 2016 分类:Linux No Comments
如果你的apt-get有什么问题:
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get dist-upgrade
“我们可以卑微如尘土,不能扭曲如蛆虫。”
作者:Harrandi 发布时间:July 13, 2016 分类:Linux No Comments
如果你的apt-get有什么问题:
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get dist-upgrade
作者:Harrandi 发布时间:July 12, 2016 分类:Linux No Comments
Shell
yum install python-setuptools
easy_install pip
pip install --upgrade pip
pip install shadowsocks
nano /usr/lib/systemd/system/shadowsocks.service
写入下面的内容
[Unit]
Description=Shadowsocks Server
Documentation=https://github.com/shadowsocks/shadowsocks
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
ExecStart=/usr/bin/ssserver -c /usr/share/nginx/etc/shadowsocks.json -d start
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/ssserver -d stop
[Install]
WantedBy=multi-user.target
保存退出
说明:如果服务端口数值小于1024,Type行后加User=root
3.添加配置文件
nano /usr/share/nginx/etc/shadowsocks.json
{
"port_password":
{
"8388":"密码1",
"端口2":"密码2"
},
"_comment":
{
"8388":"注释1,日志中标识用户用的",
"端口2":"注释2"
},
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}
保存退出
4.启动服务
systemctl enable shadowsocks
systemctl start shadowsocks
5.防火墙开放shadowsocks服务端口:
firewall-cmd --permanent --add-port=你的端口/tcp
firewall-cmd --reload
6.常用操作
为了检查 shadowsocks 服务是否已成功启动,可以执行以下命令查看服务的状态:
$ systemctl status shadowsocks -l
停止shadowsocks服务:
systemctl stop shadowsocks-server.service
取消shadowsocks开机自启
systemctl disable shadowsocks-server.service
查看日志文件
less /var/log/shadowsocks.log
作者:Harrandi 发布时间:November 14, 2015 分类:随便写写 No Comments
作者:Harrandi 发布时间:May 25, 2014 分类:微心情 No Comments
联通没把我拉下,因为是油田老住宅区所以进程显得慢了好多,几个住商品房的朋友早就换了。当然不改更贵的套餐还是没办法提高下载速度,即便这样还是感觉倍儿爽(ciao这个词儿好像被大张伟糟蹋了,本来是完全没有违和感的),上传速率突破了64k。用户名也不再加密。总算是进步了一点点。
动态域名的问题,考虑再三还是没能支持dyn的服务,所以又找了个口碑相对好的老外的DDNS。。。惭愧了