The following tutorial column ofPagoda Panelwill give you a detailed explanation of the pre-installed Pagoda Linux panel image deployment. I hope it will be helpful to friends in need!
Application scenarios:
1. IDC cloud platform system image
2. Images from major cloud markets
3. Custom image
Preparation:
1. One cloud server
2, Centos7.x / Ubuntu16 .04/Ubuntu18.04 system, Centos7.x
is recommended to start:
1. Upgrade the system kernel and apply to the latest version yum update -y
2. Install Pagoda Linux version 6.8.9
Note:
1. Because it is a packaged image, there is no need to mount the disk. Please install Pagoda directly to System disk
2. Please do not configure the default use of private keys to log in to SSH. The SSH private key will be cleared during the encapsulation process
Encapsulation:
1. Execute in SSH: python /www/server/panel/tools.py package
2. Clear command line records: history -c
following The information will be cleaned by the encapsulated program:
1. Operation log
2. Scheduled task history, including installation logs, download logs, etc.
3. Network monitoring Record
4, CPU monitoring record
5, Disk monitoring record
6, Security entrance
7, /root/.ssh/*
Advanced:
Before performing encapsulation, you can also make the following presets for the panel:
1. Pre-install the environment (not recommended)
2. Change the default port of the panel, the default is: 8888
3. Preset one or more scheduled tasks, such as: memory release
4. Release specific ports, For example: 443
5. Block a specific IP or IP range, such as: 10.0.0.1/24
6. Set an alias
7. Modify the default administrator user name
8. System security configuration
9. Customized initialization page template:/www/server/panel/BTPanel/templates/default/install.html
Completion:
1. After the encapsulation is completed, it can be packaged into an image.
2. Panel initialization address: http://server IP:8888/install
Supplement:
If you want the system to automatically regenerate a random user name and password when it is first started, please enter the following command before packaging:
echo > /www/server/panel/aliyun.pl
After using the automatically generated random user name and password, the user will no longer be prompted to initialize the panel when accessing the panel for the first time. The user needs to enter SSH and use the following command to obtain the panel default user name and password:
bt default
The above is the detailed content of Detailed explanation of pre-installed Pagoda Linux panel image deployment. For more information, please follow other related articles on the PHP Chinese website!