安装步骤
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