HTML+CSS training——Day15——deploy the project to Alibaba Cloud server

Complete project link: DZmusic

foreword

Because Alibaba Cloud has a free 3-month trial, we can deploy the project to it.
insert image description here
Choose this service Please add a picture description
We use CentOS, which is simpler and lighter. Please add a picture description
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
insert image description hereinsert image description here

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

insert image description here
insert image description here
Just add the port you need manually.
insert image description here
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.
insert image description here
After entering, install the software in the red box
insert image description here
. 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. insert image description here
After passing in your project file, just open the ip again.

Demonstration effect

insert image description here

Guess you like

Origin blog.csdn.net/qq_42887663/article/details/131202340