|
* m/ y$ U+ G4 M+ [
宝塔面板 - 便捷、高效和安全的服务器站点运维面板安装面板CentOS安装脚本yum install ‐y wget && wget ‐O install.sh http://download.bt.cn/
. R7 ? s, J/ L. n/ K$ v' l install/install.sh && sh install.shUbuntu/Deepin安装脚本wget ‐O install.sh http://download.bt.cn/install/
p+ @1 _* J# C install‐ubuntu.sh && sudo bash install.shDebian 安装脚本wget ‐O install.sh http://download.bt.cn/install/
. T/ X7 y1 d* c5 `% W5 h+ {" J install‐ubuntu.sh && bash install.shFedora 安装脚本wget ‐O install.sh http://download.bt.cn/install/install.sh && bash install.sh : U, P9 {( o- y0 N2 G
管理面板启动/etc/init.d/bt start重启/etc/init.d/bt restart停止/etc/init.d/bt stop卸载/etc/init.d/bt stop && chkconfig ‐‐del bt && rm ‐f /etc/
+ Y. A- o8 i( o2 `. x4 W8 Y% B init.d/bt && rm ‐rf /www/server/panel查看面板端口cat /www/server/panel/data/port.pl修改面板端口CentOS 6 下修改成 8881 端口 a6 t6 \$ U$ A! P# F* F' q
echo 8881 > /www/server/panel/data/port.pl && /etc/init.d/bt restart- t: Z$ m' z' c7 u9 u) a* w
iptables ‐I INPUT ‐p tcp ‐m state ‐‐state NEW ‐m tcp ‐‐dport . m4 C) V( C$ {
8881 ‐j ACCEPT
$ w$ B/ k- q6 T! V# r service iptables save+ ]- z) `9 e! l4 S/ C; @4 Y: A
service iptables restartCentOS 7 下修改成 8881 端口echo 8881 > /www/server
8 Z" v& f9 h5 I& T6 R /panel/data/port.pl && /etc/init.d/bt restart7 E9 `1 J8 i2 B5 g
firewall‐cmd ‐‐permanent ‐‐zone=public ‐‐add‐port=8881/tcp
7 W S: C' W& z1 h H' k# y; V firewall‐cmd ‐‐reload
5 A9 W3 _- I6 w3 ~7 ~" J 强制修改 MySQL 管理(root)密码,如要改成 123456cd /www/server/panel && python tools.pyc root 123456修改面板密码,如要改成123456
: R& F9 M; R/ r. `# d cd /www/server/panel && python tools.pyc panel 123456删除域名绑定面板rm ‐f /www/server/panel/data/domain.conf
7 r/ H$ R( h# @5 V8 M 清理面板登录限制rm ‐f /www/server/panel/data/*.login关闭访问限制rm ‐f /www/server/panel/data/limitip.conf关闭面板SSLrm ‐f /www/server/panel/
! z% J/ {/ r1 [4 X d1 D/ l0 f data/ssl.pl && /etc/init.d/bt restart相关文件位置站点配置文件位置:/www/server/panel/vhostnginx站点配置文件位置:/www/server/panel/vhost/nginx
6 ], {; x) x' I0 `: V! \1 `; P! W apache站点配置文件位置:/www/server/panel/vhost/apache站点默认目录:/www/wwwroot数据库备份目录:/www/backup/database站点备份目录:/www/backup/site
" ^6 g$ y6 k5 u 面板授权IP位置:/www/server/panel/data/limitip.conf许可域名位置:/www/server/panel/data/domain.conf面板日志位置:/tmp/panelBoot.pl 9 k' |3 I, x( h! Q6 \9 m
软件安装日志位置:/tmp/panelExec.log数据库错误日志位置:/www/server/data/*.err错误日志位置:/tmp/panelBoot站点日志位置:/www/wwwlogsNginx 服务管理 ) A! k8 T. o; q
安装目录:/www/server/nginx启动/etc/init.d/nginx start重启/etc/init.d/nginx restart停止/etc/init.d/nginx stop重新载入配置文件 / w( u5 D( N! F" e4 C# ]
/etc/init.d/nginx reload配置文件目录位置:/www/server/nginx/conf/nginx.confApache 服务管理安装目录:/www/server/httpd启动 , p0 [# t5 E9 ~% }) [9 B6 S
/etc/init.d/httpd start重启/etc/init.d/httpd restart停止/etc/init.d/httpd stop重新载入配置文件/etc/init.d/httpd reload : R9 L3 Q$ n0 `" u I
配置文件目录位置:/www/server/apache/conf/httpd.confMySQL 服务管理安装位置:/www/server/mysqlphpmyadmin安装目录:/www/server/phpmyadmin
/ l B. e' p2 Z1 [ 数据库存放目录:/www/server/data启动/etc/init.d/mysqld start重启/etc/init.d/mysqld restart停止/etc/init.d/mysqld stop
' ^$ J* }; \# F" t& ^: Y/ M 重新载入配置文件/etc/init.d/mysqld reload配置文件位置:/etc/my.cnfFTP 服务管理安装目录:/www/server/pure‐ftpd启动/etc/init.d/pure‐ftpd start
/ M& `! H+ n( D1 ~ 重启/etc/init.d/pure‐ftpd restart停止/etc/init.d/pure‐ftpd stop配置文件位置:/www/server/pure‐ftpd/etc/pure‐ftpd.conf
2 G7 y% z1 D* G. c, b PHP 服务管理安装目录:/www/server/php启动/etc/init.d/php‐fpm‐{52|53|54|55|56|70|71} start重启/etc/init.d/php‐fpm‐{
. I9 {; A" ~5 g: Y. C c) z. e 52|53|54|55|56|70|71} restart停止/etc/init.d/php‐fpm‐{52|53|54|55|56|70|71} stop重新载入配置文件/etc/init.d/php‐fpm‐{
: |+ ^- L( I' S, l# L 52|53|54|55|56|70|71} reload配置文件位置:/www/server/php/{52|53|54|55|56|70|71}/etc/php.iniRedis 服务管理安装目录:/www/server/redis }" V- w% L" G( m
启动/etc/init.d/redis start停止/etc/init.d/redis stop配置文件位置:/www/server/redis/redis.confMemcached 服务管理安装目录:/usr/local/memcached
0 ]/ O% z( e, h+ B& W& _0 p8 S 启动/etc/init.d/memcached start重启/etc/init.d/memcached restart停止/etc/init.d/memcached stop重新载入配置文件/etc/
! t0 l* q1 T* j8 w0 o O1 U init.d/memcached reload
: S% w- U0 ~& E+ o7 b9 l5 V4 |/ V) M! M; K; J! S
$ ?; p" V) U8 o! B, w3 I
~. ?# P# b8 W
( ]3 M2 B) ]; D
|