OneinStack Web环境常用快捷小工具命令(重启PHP/Nginx/MySQL等)

这里包括一些WEB工具的重启和启动关闭。

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}

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}

Memcached:

service memcached {start|stop|status|restart|reload}

这里是我们常用的WEB重启管理服务。

安装
yum -y install wget screen #for CentOS/Redhat

apt-get -y install wget screen #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

~/oneinstack/install.sh
2021-11-01T04:46:03.png

升级
~/oneinstack/upgrade.sh

安装虚拟主机
~/oneinstack/vhost.sh

2021-11-01T04:48:52.png

删除
~/oneinstack/vhost.sh --del
备份
~/oneinstack/backup_setup.sh # Set backup options
2021-11-01T04:51:04.png
卸载
~/oneinstack/uninstall.sh
2021-11-01T04:51:51.png

相关文章

此处评论已关闭

[player id="719102"/]