Complete project link: DZmusic
foreword
Because Alibaba Cloud has a free 3-month trial, we can deploy the project to it.
Choose this service
We use CentOS, which is simpler and lighter.
Open his VNC console
Install the Pagoda control panel, enter
yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec
Then press y all the way, and
finally the following message will appear
The first is the address of your public network, and the second is the address of the internal network.
We have to pay attention , because Alibaba Cloud will not automatically open the ports for you, so we need to manually open the ports of CentOS and Alibaba Cloud, which is equivalent to opening the ports for one input and one output.
CentOS open port
Start the port you need, xxx is the port required after the above pagoda is installed.
firewall-cmd --zone=public --add-port=xxxx/tcp --permanent
Check the ports that have been opened, and the port you need will appear.
firewall-cmd --list-ports
restart firewall
firewall-cmd --reload
Alibaba Cloud opens the port
Just add the port you need manually.
In this case, both of us will suffer. You can enter it in the browser
https://ip:xxxx/xxxxxx
It is the address where the pagoda starts, and you can enter the pagoda.
After entering, install the software in the red box
. After installation, transfer your project file into the file. We choose this path because the default project for creating php will contain an index, we just change its name to another name, so that it cannot read the original index, I changed it index_d.html
.
After passing in your project file, just open the ip again.