Linux下OneinStack一键安装JAVA+PHP+Tomcat+Nginx+MySQL网站环
yum -y install wget screen python #for CentOS/Redhat # apt-get -y install wget screen python #for Debian/Ubuntuwget 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这样执行
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} 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}
转载于:https://blog.51cto.com/13272050/2068265