supervisor
cd /etc/supervisord.d
sudo touch oms-snyc-official-customer.ini
[program:oms-snyc-official-customer]
command=/usr/local/php/bin/php /data/web/app/oms/oms-backend/yii official-customer/import
user=root
numprocs=1
autostart=true
autorestart=true
startsecs=5
startretries=3
priority=1
stopasgroup=false
killasgroup=true
redirect_stderr=true
stdout_logfile=/var/log/oms-snyc-official-customer.log
stdout_logfile_maxbytes=2MB
stdout_logfile_backups=5
sudo supervisorctl
> update
> start oms-snyc-official-customer
生产RSA公钥私钥
# 生成私钥
openssl genrsa -out rsa_private_key.pem 2048
# 从私钥生成公钥
openssl rsa -in rsa_private_key.pem -pubout -out rsa_public_key.pem
设置开启自启动进程sysv-rc-conf
安装 sysv-rc-conf
apt install sysv-rc-conf
ssysv-rc-conf
## 点[x]的表示启动
ssh
apt install openssh-server #安装ssh
cd /etc/ssh
cp sshd_config sshd_config.bak
vi sshd_config
## 修改成下面的值
ListenAddress 0.0.0.0
PasswordAuthentication yes
PermitRootLogin yes
#StrictModes yes
# 如果提示“sshd error: could not load host key”
rm /etc/ssh/ssh*key
dpkg-reconfigure openssh-server
#编辑后,重启ssh
service ssh restart
重启后,即可远程连接 地址 127.0.0.1 端口号 22 用户名 root 密码 *
解压tar.xz
tar xvJf node-v6.10.1-linux-x64.tar.xz