OneinStack 是一款PHP/JAVA環境一鍵配置工具。
官方安裝文檔:https://oneinstack.com/install/
OneinStack安裝過程
1.OneinStack下載下傳位址
國内線路(1.17M/s),包含源碼
http://mirrors.linuxeye.com/oneinstack-full.tar.gz
國外線路(Linode Fremont,10M/s),包含源碼
http://mirrors.linuxeye.com/oneinstack-full.tar.gz
阿裡雲内網線路,包含源碼
http://aliyun-oss.linuxeye.com/oneinstack-full.tar.gz
歐美路線,包含源碼
https://mirrors.dwhd.org/LinuxEye/oneinstack-full.tar.gz
azure路線,包含源碼
http://codex.deamwork.com/linuxeye/oneinstack-full.tar.gz
不包含源碼,建議僅國外主機下載下傳
http://mirrors.linuxeye.com/oneinstack.tar.gz
2.進入安裝
2.1首先安裝Screen
Centos&Redhat
yum -y install wget screen
Debian/Ubuntu
apt-get -y install wget screen
2.2下載下傳安裝包
阿裡雲使用者下載下傳
wget http://aliyun-oss.linuxeye.com/oneinstack-full.tar.gz
2.3解壓源碼
tar xzf oneinstack-full.tar.gz #包含源碼包解壓
tar xzf oneinstack.tar.gz #不包含源碼包解壓
2.4進入源碼目錄
cd oneinstack #如果需要修改目錄(安裝、資料存儲、Nginx日志),請修改options.conf檔案
2.5進入Screen
screen -S oneinstack #如果網路出現中斷,可以執行指令`screen -r oneinstack`重新連接配接安裝視窗
2.6進入安裝過程
./install.sh #請勿sh install.sh或者bash install.sh這樣執行
以下是安裝過程中的圖檔,由于本人安裝的時候忘記截圖了,是以暫時借用官方權威圖檔。

下面說明一些正常操作
如何添加虛拟主機?
./vhost.sh
如何删除虛拟主機?
./vhost.sh del
如何備份?
./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:
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
最後附上OneinStack開源項目官方位址
http://oneinstack.com/
OneinStack送出問題:http://oneinstack.com/qa/ask/
Github位址:https://github.com/lj2007331/oneinstack
OneinStack可以進入阿裡官方雲市場進行直接配置安裝
http://market.aliyun.com/products/53690006/cmgj000342.html?spm=5176.7114037.1996646085.3.hMVAfO_5176.900004.4.2.90mU4V
原文摘自:http://www.cnblogs.com/whc321/p/5553386.html