安裝可視化界面寶塔

?安裝寶塔

Centos安裝腳本

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

Ubuntu/Deepin安裝腳本

wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh

Debian安裝腳本

wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh

Fedora安裝腳本

wget -O install.sh http://download.bt.cn/install/install.sh && bash install.sh

管理寶塔

停止? ? /etc/init.d/bt stop

啟動(dòng)? ? /etc/init.d/bt start

重啟? ? /etc/init.d/bt restart

卸載? ? /etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel

查看當(dāng)前面板端口

cat /www/server/panel/data/port.pl

修改面板端口,如要改成8881(centos 6 系統(tǒng))

echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart

iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPT

service iptables save

service iptables restart

修改面板端口,如要改成8881(centos 7 系統(tǒng))

echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart

firewall-cmd --permanent --zone=public --add-port=8881/tcp

firewall-cmd --reload

強(qiáng)制修改MySQL管理(root)密碼,如要改成123456? ? ?cd /www/server/panel && python tools.pyc root 123456

修改面板密碼,如要改成123456? ? ? cd /www/server/panel && python tools.pyc panel 123456

查看寶塔日志? ? ? cat /tmp/panelBoot.pl

查看軟件安裝日志? ? ? cat /tmp/panelExec.log

站點(diǎn)配置文件位置? ? ? /www/server/panel/vhost

刪除域名綁定面板? ? ? rm -f /www/server/panel/data/domain.conf

清理登陸限制? ? ? ? ?rm -f /www/server/panel/data/*.login

查看面板授權(quán)IP? ? ? cat /www/server/panel/data/limitip.conf

關(guān)閉訪問(wèn)限制? ? ? rm -f /www/server/panel/data/limitip.conf

查看許可域名? ? ? ?cat /www/server/panel/data/domain.conf

關(guān)閉面板SSL? ? ? ? ? rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart

查看面板錯(cuò)誤日志? ? ? ? ? cat /tmp/panelBoot

查看數(shù)據(jù)庫(kù)錯(cuò)誤日志? ? ? ? ? cat /www/server/data/*.err

站點(diǎn)配置文件目錄(nginx)? ? ? ? ? ? ? ? ? ? /www/server/panel/vhost/nginx

站點(diǎn)配置文件目錄(apache)? ? ? ? ? ? ? ? /www/server/panel/vhost/apache

站點(diǎn)默認(rèn)目錄? ? ? ? ? ? ? ? ? /www/wwwroot

數(shù)據(jù)庫(kù)備份目錄? ? ? ? ? ? ? ? ? ? ? ? /www/backup/database

站點(diǎn)備份目錄? ? ? ? ? ? ? ? ? ? ? ? /www/backup/site

站點(diǎn)日志? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? /www/wwwlogs

Nginx服務(wù)管理

nginx安裝目錄? ? ? ? ? ? ? /www/server/nginx

啟動(dòng)? ? ? ? ? ? ? ? ? /etc/init.d/nginx start

停止? ? ? ? ? ? ? ? ? ?/etc/init.d/nginx stop

重啟? ? ? ? ? ? ? ? ? ? /etc/init.d/nginx restart

啟載? ? ? ? ? ? ? ? ? ? ?/etc/init.d/nginx reload

nginx配置文件? ? ? ? ? ? ? ? /www/server/nginx/conf/nginx.conf

Apache服務(wù)管理

apache安裝目錄? ? ? ? ? ? ? ? ?/www/server/httpd

啟動(dòng)? ? ? ? ? ? ? /etc/init.d/httpd start

停止? ? ? ? ? ? ? ? ? ? ?/etc/init.d/httpd stop

重啟? ? ? ? ? ? ?/etc/init.d/httpd restart

啟載? ? ? ? ? ? ? /etc/init.d/httpd reload

apache配置文件? ? ? ? ? ? ? ?/www/server/apache/conf/httpd.conf

MySQL服務(wù)管理

mysql安裝目錄? ? ? ? ? ? ? ? ? /www/server/mysql

phpmyadmin安裝目錄? ? ? ? ? ? ? ? ? ? ?/www/server/phpmyadmin

數(shù)據(jù)存儲(chǔ)目錄? ? ? ? ? /www/server/data

啟動(dòng)? ? ? ? ? ? ? ? ?/etc/init.d/mysqld start

停止? ? ? ? ? ? ? ? /etc/init.d/mysqld stop

重啟? ? ? ? ? ? ? ? /etc/init.d/mysqld restart

啟載? ? ? ? ? ? ? ?/etc/init.d/mysqld reload

mysql配置文件? ? ? ? ? ? ? ? /etc/my.cnf

FTP服務(wù)管理

ftp安裝目錄? ? ? ? ? ? ?/www/server/pure-ftpd

啟動(dòng)? ? ? ? ? ? ? ?/etc/init.d/pure-ftpd start

停止? ? ? ? ? ? ?/etc/init.d/pure-ftpd stop

重啟? ? ? ? ? ? ? ? /etc/init.d/pure-ftpd restart

ftp配置文件? ? ? ? ? ? ? ? ? ? ?/www/server/pure-ftpd/etc/pure-ftpd.conf

PHP服務(wù)管理

php安裝目錄? ? ? ? ? ? ? ? ? ? ? /www/server/php

啟動(dòng)(請(qǐng)根據(jù)安裝PHP版本號(hào)做更改,例如:/etc/init.d/php-fpm-54 start)

/etc/init.d/php-fpm-{52|53|54|55|56|70|71} start

停止(請(qǐng)根據(jù)安裝PHP版本號(hào)做更改,例如:/etc/init.d/php-fpm-54 stop)

/etc/init.d/php-fpm-{52|53|54|55|56|70|71} stop

重啟(請(qǐng)根據(jù)安裝PHP版本號(hào)做更改,例如:/etc/init.d/php-fpm-54 restart)

/etc/init.d/php-fpm-{52|53|54|55|56|70|71} restart

啟載(請(qǐng)根據(jù)安裝PHP版本號(hào)做更改,例如:/etc/init.d/php-fpm-54 reload)

/etc/init.d/php-fpm-{52|53|54|55|56|70|71} reload

配置文件(請(qǐng)根據(jù)安裝PHP版本號(hào)做更改,例如:/www/server/php/52/etc/php.ini)

/www/server/php/{52|53|54|55|56|70|71}/etc/php.ini

Redis服務(wù)管理

redis安裝目錄? ? ? ? ? ? ?/www/server/redis

啟動(dòng)? ? ? ? ? ? ? ? ? /etc/init.d/redis start

停止? ? ? ? ? ? ? ? ? /etc/init.d/redis stop

redis配置文件? ? ? ? ? ? /www/server/redis/redis.conf

Memcached服務(wù)管理

memcached安裝目錄? ? ? ? ? ? ? ? ?/usr/local/memcached

啟動(dòng)? ? ? ? ? ? ? ? /etc/init.d/memcached start

停止? ? ? ? ? ? ? ? /etc/init.d/memcached stop

重啟? ? ? ? ? ? ? ? ? /etc/init.d/memcached restart

啟載? ? ? ? ? ? ? ? /etc/init.d/memcached reload

==================================================================

Congratulations! Install succeeded!

==================================================================

Bt-Panel: http://27.255.79.21:8888

username: fzgwdx51

password: database

Warning:

If you cannot access the panel,

release the following port (8888|888|80|443|20|21) in the security group

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容