服务器重启
服务器重启后需要执行以下操作恢复服务
1、nginx
关闭SELinux (临时关闭,不用重启系统)
bash
setenforce 0启动nginx
bash
sudo nginx -s start2、启动前端网站(如存在nuxt)
bash
启动(挂起)
pm2 start npm --name "xxx-site" -- run start3、启动后端服务
bash
# 切到目录
cd /app/xxx/admin/
# 启动
sh admin-pro.sh start
# 如有其他服务,操作与其类似4、启动minio服务
bash
# 启动服务
[root@localhost ~]# nohup minio server /data/minio --console-address :9001 > /data/minio.log 2>&1 &
# 查看运行
[root@localhost ~]# ps -ef|grep minio
# http://xxx.xxx.xxx.xxx:90015、mysql
bash
# 启动mysql
sudo service mysql start