WordPress blog published to the public network can be accessed [windows system and linux system operation]

To publish your own personal WordPress blog site to the public network, the more conventional method is to buy a server and domain name, deploy it to the server, and file for release. There is also a local computer, such as Raspberry Pi/nas, as a server instead of purchasing another server.

For publishing and going online, it is enough to do intranet penetration, map the local port to the public network, and generate a public network address for access. You can also purchase a domain name yourself and configure it to access using your own domain name.

As an intranet penetration tool, you can try cpolar intranet penetration . Whether it is a website test or an official release, it can be realized. You only need to install the client locally and create a tunnel mapping.

If the blog site under the local port 8080 is published online, it can be accessed

1. Register for free and download and install cpolar intranet penetration

cpolar official website: https://www.cpolar.com/

1.1 windows system

After the Windows system directly downloads the client, decompress it and double-click the installation package to install it by default.

1.2 linux system

The linux system supports one-click automatic installation scripts

  • domestic use
curl -L https://www.cpolar.com/static/downloads/install-release-cpolar.sh | sudo bash
  • foreign use
curl -sL https://git.io/cpolar | sudo bash
  • Perform token authentication

If you do not have a cpolar account yet, please go to the cpolar official website to register and log in to the background to obtain an authentication token

cpolar authtoken xxxxxxxxxxxxxxxxxx
  • Configure cpolar to start automatically at boot
sudo systemctl enable cpolar
  • start service
sudo systemctl start cpolar
  • View service status
sudo systemctl status cpolar

If it is displayed normally active, it means that it has been started successfully.

2. Map the internal network to the public network

Visit http://localhost:9200/ with a browser , log in with a free registered cpolar account, and click on the left dashboard - Tunnel Management - Create Tunnel

  • Tunnel name: customizable
  • Protocol: support http/https/tcp protocol
  • Local address: fill in the local port number you want to map
  • Domain name type: choose "random domain name" for free, and paid users can choose to configure "fixed sub-domain name" or "custom domain name"
  • Region: You can choose United States, China, Europe, Hong Kong...
    insert image description here

3. Obtain the mapped public network address

After the tunnel is successfully created, you can view the newly created tunnel at 状态- . 在线隧道列表Once the corresponding public network address is generated, copied and used, the public network can access intranet services.

Please add a picture description


It should be noted that the public network address generated by free cpolar is a random temporary address, which will change within 24 hours, which is inconvenient for users who need long-term remote access. However, we can configure a fixed public network second-level subdomain name for it and increase bandwidth at the same time.

Reprinted from the cpolar pole cloud article: [Personal WordPress blog published to the public network can be accessed [no public network IP]] ( personal WordPress blog published to the public network can be accessed [no public network IP] - cpolar pole cloud )

Guess you like

Origin blog.csdn.net/m0_73879806/article/details/132222620