教你如何安装宝塔海外版

2023-04-19 09:47:41 浏览数 (1)

什么是aaPanel? aaPanel是一个简单但功能强大的控制面板,可以通过基于Web的GUI(图形用户界面)来管理Web服务器。aaPanel提供一键式功能,如一键安装LNMP / LAMP开发环境和软件。我们的主要目标是帮助用户节省部署时间,因此用户只关注自己的项目。 aaPanel网站:http://www.aapanel.com./new/download.html#install

aaPanel installation script

View detailed installation tutorials

Centos

yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh aapanel

Copy

Ubuntu/Deepin

wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh aapanel

Copy

Debian

wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh aapanel

Copy

Notice: Ensure that it is a clean operating system, there is no other environment with Apache/Nginx/php/MySQL installed (the existing environment can not be installed)

It is recommended to use Chrome, Firefox, and edge browsers to access the panel login address

aaPanel Management script

Management

Stop

代码语言:javascript复制
service bt stop

Start

代码语言:javascript复制
service bt start

Restart

代码语言:javascript复制
service bt restart

Uninstall

代码语言:javascript复制
service bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel

View current port of control panel

代码语言:javascript复制
cat /www/server/panel/data/port.pl

Change port of control panel,e.g. 8881(centos 6 Operation System)

代码语言:javascript复制
echo '8881' > /www/server/panel/data/port.pl && service bt restart iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPT service iptables save service iptables restart

Change port of control panel,e.g. 8881(centos 7 Operation System)

代码语言:javascript复制
echo '8881' > /www/server/panel/data/port.pl && service bt restart firewall-cmd --permanent --zone=public --add-port=8881/tcp firewall-cmd --reload

Force to change MySQL manager (root) Password,e.g. 123456

代码语言:javascript复制
cd /www/server/panel && python tools.py root 123456

Change control Panel login password,e.g. 123456

代码语言:javascript复制
cd /www/server/panel && python tools.py panel 123456

Site Configuration location

代码语言:javascript复制
/www/server/panel/vhost

Delete banding domain of control panel

代码语言:javascript复制
rm -f /www/server/panel/data/domain.conf

Clean login restriction

代码语言:javascript复制
rm -f /www/server/panel/data/*.login

View control panel authorization IP

代码语言:javascript复制
cat /www/server/panel/data/limitip.conf

Stop access restriction

代码语言:javascript复制
rm -f /www/server/panel/data/limitip.conf

View permission domain

代码语言:javascript复制
cat /www/server/panel/data/domain.conf

Turn off control panel SSL

代码语言:javascript复制
rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart

View control panel error logs

代码语言:javascript复制
cat /tmp/panelBoot

View database error log

代码语言:javascript复制
cat /www/server/data/*.err

Site Configuration directory(nginx)

代码语言:javascript复制
/www/server/panel/vhost/nginx

Site Configuration directory(apache)

代码语言:javascript复制
/www/server/panel/vhost/apache

Site default directory

代码语言:javascript复制
/www/wwwroot

Database backup directory

代码语言:javascript复制
/www/backup/database

Site backup directory

代码语言:javascript复制
/www/backup/site

Site logs

代码语言:javascript复制
/www/wwwlogs

Nginx

nginx installation directory

代码语言:javascript复制
/www/server/nginx

Start

代码语言:javascript复制
service nginx start

Stop

代码语言:javascript复制
service nginx stop

Restart

代码语言:javascript复制
service nginx restart

Reload

代码语言:javascript复制
service nginx reload

nginx Configuration

代码语言:javascript复制
/www/server/nginx/conf/nginx.conf

Apache

apache installation directory

代码语言:javascript复制
/www/server/httpd

Start

代码语言:javascript复制
service httpd start

Stop

代码语言:javascript复制
service httpd stop

Restart

代码语言:javascript复制
service httpd restart

Reload

代码语言:javascript复制
service httpd reload

apache Configuration

代码语言:javascript复制
/www/server/apache/conf/httpd.conf

MySQL

mysql installation directory

代码语言:javascript复制
/www/server/mysql

phpmyadmin installation directory

代码语言:javascript复制
/www/server/phpmyadmin

Data storage directory

代码语言:javascript复制
/www/server/data mysql

Start

代码语言:javascript复制
service mysqld start

Stop

代码语言:javascript复制
service mysqld stop

Restart

代码语言:javascript复制
service mysqld restart

Reload

代码语言:javascript复制
service mysqld reload

mysql Configuration

代码语言:javascript复制
/etc/my.cnf

FTP

ftp installation directory

代码语言:javascript复制
/www/server/pure-ftpd

Start

代码语言:javascript复制
service pure-ftpd start

Stop

代码语言:javascript复制
service pure-ftpd stop

Restart

代码语言:javascript复制
service pure-ftpd restart

ftp Configuration

代码语言:javascript复制
/www/server/pure-ftpd/etc/pure-ftpd

PHP

php installation directory

代码语言:javascript复制
/www/server/php

Start(Please modify by PHP version, e.g. service php-fpm-54 start)

代码语言:javascript复制
servicephp-fpm-{52|53|54|55|56|70|71|72|73|74|80|81} start

Stop(Please modify by PHP version, e.g. service php-fpm-54 stop)

代码语言:javascript复制
service php-fpm-{52|53|54|55|56|70|71|72|73|74|80|81} stop

Restart(Please modify by PHP version, e.g. service php-fpm-54 restart)

代码语言:javascript复制
service php-fpm-{52|53|54|55|56|70|71|72|73|74|80|81} restart

Reload(Please modify by PHP version, e.g. service php-fpm-54 reload)

代码语言:javascript复制
service php-fpm-{52|53|54|55|56|70|71|72|73|74|80|81} reload

Configuration(Please modify by PHP version, e.g. /www/server/php/52/etc/php.ini)

代码语言:javascript复制
/www/server/php/{52|53|54|55|56|70|71|72|73|74|80|81}/etc/php.ini

Redis

redis installation directory

代码语言:javascript复制
/www/server/redis

Start

代码语言:javascript复制
service redis start

Stop

代码语言:javascript复制
service redis stop

redis Configuration

代码语言:javascript复制
/www/server/redis/redis.conf

Memcached

memcached installation directory

代码语言:javascript复制
/usr/local/memcached

Start

代码语言:javascript复制
service memcached start

Stop

代码语言:javascript复制
service memcached stop

Restart

代码语言:javascript复制
service memcached restart

Reload

代码语言:javascript复制
service memcached reload

0 人点赞