# 工具 aaPanel

&#x20;wget -O install.sh <http://www.aapanel.com/script/install-ubuntu_6.0_en.sh> && bash install.sh

關防火牆

service ufw stop

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

![](/files/-Lo3c7iB-OhxCE9bVx7y)

\==================================================================

## Congratulations! Install succeeded!

aaPanel: <http://IP:8888/9ddd079e> username: xxxxx password: xxxxxx Warning: If you cannot access the panel,

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

### Installation

Centos Installation

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

Ubuntu/Deepin Installation

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

Debian Installation

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

Fedora Installation

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

### Management

Stop

```
service bt stop
```

Start

```
service bt start
```

Restart

```
service bt restart
```

Uninstall

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

View current port of control panel

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

Change port of control panel，e.g. 8881（centos 6 Operation System）

```
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）

```
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

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

Change control Panel login password，e.g. 123456

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

Site Configuration location

```
/www/server/panel/vhost
```

Delete banding domain of control panel

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

Clean login restriction

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

View control panel authorization IP

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

Stop access restriction

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

View permission domain

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

Turn off control panel SSL

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

View control panel error logs

```
cat /tmp/panelBoot
```

View database error log

```
cat /www/server/data/*.err
```

Site Configuration directory(nginx)

```
/www/server/panel/vhost/nginx
```

Site Configuration directory(apache)

```
/www/server/panel/vhost/apache
```

Site default directory

```
/www/wwwroot
```

Database backup directory

```
/www/backup/database
```

Site backup directory

```
/www/backup/site
```

Site logs

```
/www/wwwlogs
```

### Nginx

nginx installation directory

```
/www/server/nginx
```

Start

```
service nginx start
```

Stop

```
service nginx stop
```

Restart

```
service nginx restart
```

Reload

```
service nginx reload
```

nginx Configuration

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

### Apache

apache installation directory

```
/www/server/httpd
```

Start

```
service httpd start
```

Stop

```
service httpd stop
```

Restart

```
service httpd restart
```

Reload

```
service httpd reload
```

apache Configuration

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kawsing.gitbook.io/opensystem/andoid-shou-ji/untitled/gong-ju-aapanel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
