安静滴陪伴聊天室最完整启动运行维护命令
1.进入目录:
cd /www/wwwroot/shimen8.info/bchat
2.赋予www用户的bchat目录权限
chown -R www:www /www/wwwroot/shimen8.info/bchat
3.启动命令-切换到 www 用户启动
sudo -u www bash -c “cd /www/wwwroot/shimen8.info/bchat && ./bluesky 2000 < 2000/2000.cfg > 2000/start.log 2>&1 &”
4.检查命令
sleep 2
ps -ef | grep bluesky | grep -v grep
cat start.log
日常管理命令:
启动服务:
cd /www/wwwroot/shimen8.info/bchat chown -R www:www /www/wwwroot/shimen8.info/bchat su – www -s /bin/bash -c “cd /www/wwwroot/shimen8.info/bchat && ./bluesky 2000 < 2000.cfg > start.log 2>&1 &”
停止服务:
# 方法1
killall -9 bluesky
# 方法2
kill -9 $(ps -ef | grep ‘bluesky 2000’ | grep -v grep | awk ‘{print $2}’)
重启服务
killall -9 bluesky 2>/dev/null
sleep 1
cd /www/wwwroot/shimen8.info/bchat
su – www -s /bin/bash -c “cd /www/wwwroot/shimen8.info/bchat && ./bluesky 2000 < 2000.cfg > start.log 2>&1 &”
sleep 2
ps -ef | grep bluesky | grep -v grep
查看状态:
ps -ef | grep bluesky | grep -v grep netstat -tuln | grep 2000 tail -f /www/wwwroot/shimen8.info/bchat/chatfile.2000






暂无评论内容