DEV Community

Özcan Kara
Özcan Kara

Posted on

Huawei Cloud - Solution Architectures

Service List > Image Management Service

Image description

Image description

Configure the image parameters as follows:

Region: AP-Singapore

Type: Create Image

Image Type: System disk image

Source: ECS | ecs-db

Name: img-db

Keep the default settings for other parameters.

Select the checkbox for the agreement and click Next. Confirm the information and click Submit.

Image description

Image description

Image description

Image description

Image description

If the image does not show after a long time, you can try to click the refresh button.

Step 2 Applying the created image to a MySQL server
In the Operation column of img-db, click Apply for Server

Image description

Masaüstünde "script.txt" adlı bir dosya oluşturmak için

vim script.txt

Image description

Image description

!/bin/bash

cd /root
yum install -y httpd php php-fpm php-server php-mysql
systemctl start httpd.service
systemctl start php-fpm.service
systemctl enable httpd.service
systemctl enable php-fpm.service
wget https://labfiles-singapore.obs.ap-southeast-3.myhuaweicloud.com/Discuzenglish.zip
unzip Discuzenglish.zip
mv root/Discuz/* /var/www/html
chmod -R 777 /var/www/html
systemctl restart httpd

Top comments (0)