Last active
October 16, 2016 14:53
-
-
Save xgz123/0354e0bec0cfa2d26f096e546ee2f1f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ uname -a | |
Linux link-lxub1604 4.4.0-15-generic #31-Ubuntu SMP Fri Mar 18 19:08:31 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux | |
$ lsb_release -r | |
Release: 16.04 | |
sudo apt-get install openssh-server | |
sudo /etc/init.d/ssh restart | |
# desktop icon | |
# /usr/share/applications 把图标拷贝到这里 | |
[Desktop Entry] | |
Name=Pycharm | |
Comment=pycharm | |
Exec=/home/xgz/app/pycharm/bin/pycharm.sh | |
Icon=/home/xgz/app/pycharm/bin/pycharm.png | |
Terminal=false | |
Type=Application | |
Categories=Developer; | |
# supervisord | |
# /usr/local/bin | |
# config | |
[program:ss] | |
command=sslocal -c /home/xgz/.config/ss.json --log-file /home/xgz/sslog | |
autostart=true ; start at supervisord start (default: true); | |
startretries=3 ; max # of serial start failures when starting (default 3) | |
# usage | |
supervisord | |
supervisorctl | |
restart all | |
status | |
# error | |
# another program is already listening on a port that one of our HTTP servers is configured to use | |
[unix_http_server] | |
file=/var/run/supervisor.sock | |
[supervisorctl] | |
serverurl=unix:///var/run/supervisor.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment