linux命令

ubuntu下

修改root密码

sudo passwd root

nginx相关

sudo apt-get install nginx 安装nginx
sudo /etc/init.d/nginx start 启动nginx

scp 命令

scp ./blog root@45.32.55.140:/etc/nginx/sites-available/

mkdir -pv /var/htdocs/myblog

apt-get install git

ubuntu 配置shadowsocks

apt-get install python-gevent python-pip
pip install shadowsocks

找到shadowsocks文件夹: sudo find / -name shadows*
新建一个 config.json

1
2
3
4
5
6
7
8
9
10
{
"server":"0.0.0.0",
"server_port":8989,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"myvpn",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}

apt-get install python-m2crypto
启动服务
nohup ssserver -c /var/htdocs/shadowsocks.json &