oneinstack安装和管理记事

安装步骤
yum -y install wget screen #for CentOS/Redhat
# apt-get -y install wget screen #for Debian/Ubuntu
wget http://mirrors.oneinstack.com/oneinstack-full.tar.gz
tar xzf oneinstack-full.tar.gz
cd oneinstack
screen -S oneinstack 
#如果网路出现中断,可以执行命令screen -R oneinstack重新连接安装窗口
./install.sh

./upgrade.sh --oneinstack #升级脚本工具,不影响正在运行环境
如若上图无OneinStack选项,请执行下面:
cd ~/oneinstack
curl http://mirrors.oneinstack.com/upgrade_oneinstack.sh | bash
如何管理服务?
注意如果服务器包含systemd,则使用systemctl管理,且兼容service。

Nginx/Tengine/OpenResty:
service nginx {start|stop|status|restart|reload|configtest}

MySQL/MariaDB/Percona:
service mysqld {start|stop|restart|reload|status}

PostgreSQL:
service postgresql {start|stop|restart|status}

MongoDB:
service mongod {start|stop|status|restart|reload}

PHP:
service php-fpm {start|stop|restart|reload|status}

HHVM:
service supervisord {start|stop|status|restart|reload}

Apache:
service httpd {start|restart|stop}

Tomcat:
service tomcat {start|stop|status|restart}

Pure-Ftpd:
service pureftpd {start|stop|restart|status}

Redis:
service redis-server {start|stop|status|restart}

Memcached:
service memcached {start|stop|status|restart|reload}

发布者:内蒙独狼,转转请注明出处:https://www.panpinyu.com/knowing/20181008

(1)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
内蒙独狼的头像内蒙独狼管理者
上一篇 2016年8月13日 下午9:59
下一篇 2019年9月24日 下午12:59

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

Optimized by WPJAM Basic