OneinStack是一键PHP/JAVA安装脚本工具,包含lnmp,lamp,lnmpa,ltmp,lnmh,MySQL,PostgreSQL,MongoDB等
安装前注意事项:
yum -y install wget screen curl python #for CentOS/Redhat # apt-get -y install wget screen curl python #for Debian/Ubuntu wget http://aliyun-oss.linuxeye.com/oneinstack-full.tar.gz #阿里云经典网络下载 wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz #包含源码,国内外均可下载 wget http://mirrors.linuxeye.com/oneinstack.tar.gz #不包含源码,建议仅国外主机下载 tar xzf oneinstack-full.tar.gz cd oneinstack #如果需要修改目录(安装、数据存储、Nginx日志),请修改options.conf文件 screen -S oneinstack #如果网路出现中断,可以执行命令`screen -R oneinstack`重新连接安装窗口 ./install.sh #注:请勿sh install.sh或者bash install.sh这样执行
如何添加附加组件?
./addons.sh
如何添加虚拟主机?
./vhost.sh
如何删除虚拟主机?
./vhost.sh del
如何管理FTP账号?
./pureftpd_vhost.sh
如何备份?
./backup_setup.sh # Set backup options
./backup.sh # Start backup, You can add cron jobs # crontab -l # Examples 0 1 * * * cd ~/oneinstack;./backup.sh > /dev/null 2>&1 &
如何管理服务?
Nginx/Tengine/OpenResty:
service nginx {start|stop|status|restart|reload|configtest}
MySQL/MariaDB/Percona:
service mysqld {start|stop|restart|reload|status}
PHP:
service php-fpm {start|stop|restart|reload|status}
HHVM:
service supervisord {start|stop|status|restart|reload}
注:hhvm进程交给supervisord管理,了解更多请访问《Supervisor管理hhvm进程》
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|reload}
Memcached:
service memcached {start|stop|status|restart|reload}
如何更新版本?
./upgrade.sh
如何卸载?
./uninstall.sh