Centos Ubuntu 安装web环境

技术QQ交流群:294088839。

地址

https://oneinstack.com/download/

yum -y install wget screen curl python #for CentOS/Redhat
# apt-get -y install wget screen curl python #for Debian/Ubuntu
wget http://mirrors.linuxeye.com/oneinstack-full.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这样执行

Centos Ubuntu 安装web环境_第1张图片

如何添加附加组件?

./addons.sh

Centos Ubuntu 安装web环境_第2张图片

如何添加虚拟主机?

./vhost.sh

Centos Ubuntu 安装web环境_第3张图片

如何删除虚拟主机?

./vhost.sh del

Centos Ubuntu 安装web环境_第4张图片

如何管理FTP账号?

./pureftpd_vhost.sh

Centos Ubuntu 安装web环境_第5张图片

如何备份?

./backup_setup.sh # Set backup options 

Centos Ubuntu 安装web环境_第6张图片

 ./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}

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}

: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

Centos Ubuntu 安装web环境_第7张图片

如何卸载?

./uninstall.sh

Centos Ubuntu 安装web环境_第8张图片


你可能感兴趣的:(学习总结)