Linode新KVM架构VPS更换内核以安装锐速BBR等程序
安装Grub 安装过程中可能会询问安装位置,不需要安装到MBR Arch Linux pacman -S linux grub CentOS 7 yum install kernel grub2 Debian apt-get install linux-image-amd64 grub2 Fedora 22 dnf install kernel-core grub2 Ubuntu apt-get install linux-image-virtual grub2 Gentoo (more…)
Supervisor守护Python进程
Debian下使用supervisor进程守护的方法 安装supervisor apt-get install supervisor 配置supervisor进程守护 在目录/etc/supervisor/conf.d/下, 新建一个文件,名字:yourpython.conf 在yourpython.conf文件里编辑添加: [program:yourpython] directory=/root/yourpython command=python server.py -c /root/yourpython/user-config.json user=root autostart = true autoresart = true stderr_logfile = /var/log/yourpython.log stdout_logfile = /var/log/yourpython.log stderr_logfile_maxbytes=4MB stderr_logfile_backups=10 startsecs=3 command就是ss的运行命令; user是执行命令的用户; autostart和autoresart指自动启动和自动重启; stdout_logfile重定向程序输出到此文件; stderr_logfile重定向程序错误到此文件; 修改以下文件 /etc/profile /etc/default/supervisor (more…)