UnityWebGL+Aliyun server+Apache completed the project construction display

1. Server related

Step1: Rent an Alibaba Cloud server

I rented an ECS server in Beijing myself, with a free one-year event, 1 vCPU 2 GiB, the Ubuntu system I choose, or the Windows system

Step2: Enter the remote connection

After entering your own server instance, click Remote Connection to enter the server background. If you are familiar with Linux, you can also install Liunx remote connection tools such as putty and xshell. I am not familiar with Linux operating instructions, so I chose to install a pagoda panel. It You can visually operate the server background, including FTP, website, database, etc. To install the pagoda panel, you need to enter the following commands in the Ubuntu system:

wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec

Step3: BT panel

After the installation is complete, enter bt on the server, you can see your own bt operation interface, first modify your user name and password,

Open port 8888 in the security group on the home page of your server

Then enter the bt login panel, fill in your public network IP, user name and password, and you can enter the pagoda panel

Step4: Create corresponding content according to requirements

 You can create websites, FTP, databases, and the corresponding ports are also different

FTP (File Transfer Protocol) is a transfer protocol used for two-way transmission on the Internet to control the file download space. Copy files on the server from the local computer or upload files locally to the space on the server, and you can download the corresponding client, such as the common FileZilla, Monsta, WinSCP for your own needs

You can also create your own database and website, and you can download the corresponding plug-ins in the software store

 

Of course, you can also visualize your own folders in the pagoda panel, click on the folder to enter the corresponding page

Two, Apache-related

After completing the above operations, you need to install a web server on your server to support the HTTP protocol. Common web servers include Apache, Nginx, etc. I installed Apache here

 1. Ubuntu common commands

1: Install Apeche

sudo apt-get update
sudo apt-get install apache2

2: Open Apache

sudo systemctl start apache2

3: Boot up automatically

sudo systemctl enable apache2

4: Check the running status of Apache

sudo systemctl status apache2

5: Change the Apace port

sudo nano /etc/apache2/ports.conf

6: Install UFW (Uncomplicated Firewall), a lightweight tool to monitor input and output traffic

sodu apt install ufw

7: Check the opening of the firewall

sudo ufw status verbose

8: Turn on the firewall

sudo ufw enable

sudo ufw default deny

9: Turn off the firewall

sudo ufw disable

10: Turn on/off the port

sudo ufw all 80 / allow access to port 80

sudo ufw allow from 192.168.1.11 /Allow this IP to access all local ports

11: Check whether the port is monitored

sudo netstat -tlnp | grip 80

12: Check the status of all ports

sudo netstat -tlnp

After the web server is deployed, you can see the Apache installation package in the file content etc/ of the pagoda panel

Three, WebGl related

After all the work is done, you only need to package the local WebGL project and upload the four packaged folders to

Under the /var/www/html  folder, then access your own IP address + port number + folder + file name

For example, 1.1.1.1:80/html/index.html

Your visit is complete!

Leave a place for follow-up error summary:


 

Guess you like

Origin blog.csdn.net/leikang111/article/details/130486945