标签:jdk 国内 yum set yun 国外 mirror ade .gz
yum -y install wget screen python #for CentOS/Redhat # apt-get -y install wget screen 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这样执行
我们根据自己的需要设置新的ROOT端口,安全提高一些,这里我是乱写的几个数字,根据我们自己的实际写几个不同的数字,反正不用22就可以。然后选择NGINX、TOMCAT、JDK等环境版本。
./vhost.sh
./vhost.sh del
./pureftpd_vhost.sh
./backup_setup.sh # Set backup options ./backup.sh # Start backup, You can add cron jobs # crontab -l 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} 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
Linux下OneinStack一键安装JAVA+PHP+Tomcat+Nginx+MySQL网站环境
标签:jdk 国内 yum set yun 国外 mirror ade .gz
原文地址:http://www.cnblogs.com/SmartNing/p/6539143.html