Centos安装脚本
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
宝塔服务管理
更新宝塔 | curl http://download.bt.cn/install/update_to_6.sh|bash |
---|
停止宝塔 | /etc/init.d/bt stop |
卸载宝塔 | /etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel |
启动宝塔 | /etc/init.d/bt start |
重启宝塔 | /etc/init.d/bt restart |
修改面板密码,如要改成123456 | cd /www/server/panel && python tools.py panel 123456 |
Apache服务管理
apache安装目录 | /www/server/httpd |
---|
启动 | /etc/init.d/httpd start |
停止 | /etc/init.d/httpd stop |
重启 | /etc/init.d/httpd restart |
apache配置文件 | /www/server/apache/conf/httpd.conf |
MySQL服务管理
mysql安装目录 | /www/server/mysql |
---|
phpmyadmin安装目录 | /www/server/phpmyadmin |
数据存储目录 | /www/server/data |
启动 | /etc/init.d/mysqld start |
停止 | /etc/init.d/mysqld stop |
重启 | /etc/init.d/mysqld restart |
mysql配置文件 | /etc/my.cnf |