• 欢迎访问速搜资源吧,如果在网站上找不到你需要的资源,可以在留言板上留言,管理员会尽量满足你!

【速搜问答】宝塔面板常用Linux命令大全

问答 admin 3周前 (07-13) 44次浏览 已收录 0个评论

汉英对照:
Chinese-English Translation:

宝塔面板是一款服务器管理软件,支持 windows 和 linux 系统,可以通过 Web 端轻松管理服务器,提升运维效率。例如:创建管理网站、FTP、数据库,拥有可视化文件管理器,可视化软件管理器,可视化 CPU、内存、流量监控图表,计划任务等功能。

Pagoda panel is a server management software, which supports windows and Linux systems. It can easily manage the server through the web and improve the operation and maintenance efficiency. For example: create management website, FTP, database, with visual file manager, visual software manager, visual CPU, memory, traffic monitoring chart, planning tasks and other functions.

宝塔面板官网:www.bt.cn

Official website of pagoda panel: http://www.bt.cn

安装宝塔

Install the pagoda

Centos 安装脚本

CentOS installation script

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

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

Ubuntu/Deepin 安装脚本

Ubuntu / deepin installation script

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

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

Debian 安装脚本

Debian installation script

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

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

Fedora 安装脚本

Fedora installation script

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

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

管理宝塔

Management pagoda

宝塔工具箱(包含下列绝大部分功能 直接 ssh 中执行 bt 命令 仅限 6.x 以上版本面板)

Pagoda toolbox (contains most of the following functions. Executing BT command directly in SSH is limited to 6. X or above panel)

bt

BT

停止

stop it

/etc/init.d/bt stop

/etc/init.d/bt stop

启动

start-up

/etc/init.d/bt start

/etc/init.d/bt start

重启

restart

/etc/init.d/bt restart

/etc/init.d/bt restart

卸载

uninstall

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

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

查看当前面板端口

View current panel port

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

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

修改面板端口,如要改成 8881(centos 6 系统)

Modify the panel port to 8881 (CentOS 6 system)

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

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

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

service iptables save

service iptables save

service iptables restart

service iptables restart

修改面板端口,如要改成 8881(centos 7 系统)

Modify the panel port to 8881 (CentOS 7 system)

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

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

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

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

firewall-cmd –reload

firewall-cmd –reload

强制修改 MySQL 管理(root)密码,如要改成 123456

Force to change MySQL Management (root) password to 123456

cd /www/server/panel && python tools.py root 123456

cd /www/server/panel && python tools.py root 123456

修改面板密码,如要改成 123456

Change the panel password to 123456

cd /www/server/panel && python tools.py panel 123456

cd /www/server/panel && python tools.py panel 123456

查看宝塔日志

View pagoda log

cat /tmp/panelBoot.pl

cat /tmp/ panelBoot.pl

查看软件安装日志

View software installation log

cat /tmp/panelExec.log

cat /tmp/ panelExec.log

站点配置文件位置

Site profile location

/www/server/panel/vhost

/www/server/panel/vhost

删除域名绑定面板

Delete domain name binding panel

rm -f /www/server/panel/data/domain.conf

rm -f /www/server/panel/data/ domain.conf

清理登陆限制

Clear landing restrictions

rm -f /www/server/panel/data/*.login

rm -f /www/server/panel/data/*.login

查看面板授权 IP

View panel licensing IP

cat /www/server/panel/data/limitip.conf

cat /www/server/panel/data/ limitip.conf

关闭访问限制

Turn off access restrictions

rm -f /www/server/panel/data/limitip.conf

rm -f /www/server/panel/data/ limitip.conf

查看许可域名

View licensed domain name

cat /www/server/panel/data/domain.conf

cat /www/server/panel/data/ domain.conf

关闭面板 SSL

Turn off panel SSL

rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart

rm -f /www/server/panel/data/ ssl.pl && /etc/init.d/bt restart

查看面板错误日志

View panel error log

cat /tmp/panelBoot

cat /tmp/panelBoot

查看数据库错误日志

View database error log

cat /www/server/data/*.err

cat /www/server/data/*.err

站点配置文件目录(nginx)

Site profile directory (nginx)

/www/server/panel/vhost/nginx

/www/server/panel/vhost/nginx

站点配置文件目录(apache)

Site profile directory (APACHE)

/www/server/panel/vhost/apache

/www/server/panel/vhost/apache

站点默认目录

Site default directory

/www/wwwroot

/www/wwwroot

数据库备份目录

Database backup directory

/www/backup/database

/www/backup/database

站点备份目录

Site backup directory

/www/backup/site

/www/backup/site

站点日志

Site log

/www/wwwlogs

/www/wwwlogs

Nginx 服务管理

Nginx service management

nginx 安装目录

Nginx installation directory

/www/server/nginx

/www/server/nginx

启动

start-up

/etc/init.d/nginx start

/etc/init.d/nginx start

停止

stop it

/etc/init.d/nginx stop

/etc/init.d/nginx stop

重启

restart

/etc/init.d/nginx restart

/etc/init.d/nginx restart

启载

Launch

/etc/init.d/nginx reload

/etc/init.d/nginx reload

nginx 配置文件

Nginx configuration file

/www/server/nginx/conf/nginx.conf

/www/server/nginx/conf/ nginx.conf

Apache 服务管理

Apache service management

apache 安装目录

Apache installation directory

/www/server/httpd

/www/server/httpd

启动

start-up

/etc/init.d/httpd start

/etc/init.d/httpd start

停止

stop it

/etc/init.d/httpd stop

/etc/init.d/httpd stop

重启

restart

/etc/init.d/httpd restart

/etc/init.d/httpd restart

启载

Launch

/etc/init.d/httpd reload

/etc/init.d/httpd reload

apache 配置文件

Apache configuration file

/www/server/apache/conf/httpd.conf

/www/server/apache/conf/ httpd.conf

MySQL 服务管理

MySQL service management

mysql 安装目录

MySQL installation directory

/www/server/mysql

/www/server/mysql

phpmyadmin 安装目录

PhpMyAdmin installation directory

/www/server/phpmyadmin

/www/server/phpmyadmin

数据存储目录

Data storage directory

/www/server/data

/www/server/data

启动

start-up

/etc/init.d/mysqld start

/etc/init.d/mysqld start

停止

stop it

/etc/init.d/mysqld stop

/etc/init.d/mysqld stop

重启

restart

/etc/init.d/mysqld restart

/etc/init.d/mysqld restart

启载

Launch

/etc/init.d/mysqld reload

/etc/init.d/mysqld reload

mysql 配置文件

MySQL configuration file

/etc/my.cnf

/etc/ my.cnf

FTP 服务管理

FTP service management

ftp 安装目录

FTP installation directory

/www/server/pure-ftpd

/www/server/pure-ftpd

启动

start-up

/etc/init.d/pure-ftpd start

/etc/init.d/pure-ftpd start

停止

stop it

/etc/init.d/pure-ftpd stop

/etc/init.d/pure-ftpd stop

重启

restart

/etc/init.d/pure-ftpd restart

/etc/init.d/pure-ftpd restart

ftp 配置文件

FTP configuration file

/www/server/pure-ftpd/etc/pure-ftpd.conf

/www/server/pure-ftpd/etc/pure- ftpd.conf

PHP 服务管理

PHP service management

php 安装目录

PHP installation directory

/www/server/php

/www/server/php

启动(请根据安装 PHP 版本号做更改,例如:/etc/init.d/php-fpm-54 start)

Start (please change according to the installed PHP version number, for example, / etc / init.d/php-fpm-54 start)

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

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

停止(请根据安装 PHP 版本号做更改,例如:/etc/init.d/php-fpm-54 stop)

Stop (please change according to the installed PHP version number, for example, / etc / init.d/php-fpm-54 stop)

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

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

重启(请根据安装 PHP 版本号做更改,例如:/etc/init.d/php-fpm-54 restart)

Restart (please change according to the installed PHP version number, for example, / etc / init.d/php-fpm-54 restart)

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

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

启载(请根据安装 PHP 版本号做更改,例如:/etc/init.d/php-fpm-54 reload)

Boot (please change it according to the PHP version number installed, for example, / etc / init.d/php-fpm-54 reload)

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

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

配置文件(请根据安装 PHP 版本号做更改,例如:/www/server/php/52/etc/php.ini)

Configuration file (please change it according to the installed PHP version number, for example, / www / server / PHP / 52 / etc/ php.ini )

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

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

Redis 服务管理

Redis service management

redis 安装目录

Redis installation directory

/www/server/redis

/www/server/redis

启动

start-up

/etc/init.d/redis start

/etc/init.d/redis start

停止

stop it

/etc/init.d/redis stop

/etc/init.d/redis stop

redis 配置文件

Redis configuration file

/www/server/redis/redis.conf

/www/server/redis/ redis.conf

Memcached 服务管理

Memcached service management

memcached 安装目录

Memcached installation directory

/usr/local/memcached

/usr/local/memcached

启动

start-up

/etc/init.d/memcached start

/etc/init.d/memcached start

停止

stop it

/etc/init.d/memcached stop

/etc/init.d/memcached stop

重启

restart

/etc/init.d/memcached restart

/etc/init.d/memcached restart

启载

Launch

/etc/init.d/memcached reload

/etc/init.d/memcached reload

宝塔面板官网:www.bt.cn

Official website of pagoda panel: http://www.bt.cn


速搜资源网 , 版权所有丨如未注明 , 均为原创丨转载请注明原文链接:【速搜问答】宝塔面板常用Linux命令大全
喜欢 (0)
[361009623@qq.com]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址