Analysis of 1Panel deployment method to achieve convenient operation and maintenance management and remote access in Linux system

Article directory

Preface

1Panel is a modern, open source Linux server operation and maintenance management panel. Efficient management, easy management of Linux servers through the web, including host monitoring, file management, database management, container management, etc. Below we introduce how to install 1Panel locally on Linux and combine it with cpolar intranet penetration tool to realize remote access to the 1Panel management interface ## 1. Linux installation 1Panel Execute the following command to install 1Panel with one click: shellcurl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.shAfter the installation is successful, we can see the following information: 1. During the installation, you will be prompted to set the access port number, which can be default or customized, and it will also prompt you to set the user name and password , this can be customized for easy login 2. Finally, the installation is successful, we can see the access port, login user name and password, here according to the default port, it is: 3. We can see 16098a security code behind the access URL of the panel address image-20230905143959381, be careful not to miss ## when visiting http public network address, we can easily achieve remote access to 1Panel without registering a domain name and purchasing a cloud server. The following are the steps to install cpolar> cpolar official website address: https://www.cpolar.com- use a one-click script installation command shellcurl -L https://www.cpolar.com/static/downloads/install-release-cpolar.sh | sudo bash- Add service to the system shellsudo systemctl enable cpolar- Start the cpolar service shellsudo systemctl start cpolarAfter cpolar is installed successfully, visit the 9200 port of Linux on the external browser, namely: [http://LAN ip:9200], log in with the cpolar account, and you can see the cpolar web after login Configuration interface, just configure it in the web interfaceimage-20230831171159175## 3. Configure the 1Panel public network access address. Click Tunnel Management - Create Tunnel on the left dashboard to create a local cpolar tunnel for https! - Tunnel name: Customizable naming, be careful not to duplicate the existing tunnel name - Protocol: Select http - Local address: https://127.0.0.1:16098 (the local port seen above) - Domain name type: Choose a random domain name for free - Region: Select China vip. After the tunnel is created successfully, click on the 创建image-20230905143210367left Status - Online tunnel list, check the generated public network access address, there are two access methods, one is http and https ## 4. image-20230905143354624Public network remote access 1Panel management interface use the above https public network address on any device Browser access, be careful not to miss the security code when accessing, and then you can successfully see our 1Panel management interface. Such a public network address that can be accessed remotely has been created. To access a new address, you may need to log in again. After logging image-20230905151228174in You can see the main management interface image-20230905151249792## 5. Fixed 1Panel public network address. Since the tunnel created using cpolar above uses a random public network address, it will change randomly within 24 hours, which is not conducive to long-term remote access. Therefore, we can configure a second-level subdomain name for it. The address is a fixed address and will not change randomly [ps: cpolar.cn has been filed] > Note that the cpolar package needs to be upgraded to a basic package or above, and the bandwidth corresponding to each package no the same. [cpolar.cn has been filed] Log in to the cpolar official website , click Reserve on the left, select to reserve the second-level subdomain name, set a second-level subdomain name, click Reserve, and copy the reserved second-level subdomain name after the reservation is successful image-20230905144524127. Copy the name of the successfully reserved second-level subdomain name image-20230905144548495. Return to the cpolar web UI management interface, click Tunnel Management - Tunnel List on the left dashboard, find the 1Panel tunnel to be configured, and click Edit on the rightimage-20230905145603929Modify the tunnel information and configure the successfully reserved second-level subdomain name into the tunnel - Domain name type: Select the second-level subdomain name - Sub Domain: Fill in the successfully reserved second-level subdomain name and click (note, click once to update, no need to 更新repeat Submit) image-20230905145719670After the update is completed, open the online tunnel list. At this time, you can see that the public network address has changed, and the address name has also become a fixed second-level subdomain name. Finally, we use the fixed image-20230905150345781public network address to access the 1Panel service. , Mainly, you also need to add a security code, and then you can see that the access is successful, so that a fixed and permanent public network address is set >Reprinted from image-20230905150847030cpolar pole cloud article: Linux Deployment 1Panel Modern Operation and Maintenance Management Panel & Remote access

Guess you like

Origin blog.csdn.net/weixin_46703995/article/details/132743035