记录一下服务器的常用命令

localtime -> /usr/share/zoneinfo/Etc/UTC
ln -sf /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime

sudo /etc/init.d/cron restart

/etc/init.d/mysql start
/etc/init.d/mysql stop
/etc/init.d/ssh restart

/etc/init.d/apache2 restart

cat /var/log/apache2/error.log

pip list
pip list –outdated
pip install –upgrade requests
pip install -U itchat

ssserver -c /ssdir/ss.json -d start

git fetch –all
git reset –hard origin/master
git pull origin
git push origin