Huawei Cloud Yunyao Cloud Server L instance evaluation | Yunyao Cloud Server L instance deploys ZFile online network disk service

Huawei Cloud Yunyao Cloud Server L instance evaluation | Yunyao Cloud Server L instance deploys ZFile online network disk service

1. Introduction to Yunyao Cloud Server L Instance

1.1 Introduction to Yunyao Cloud Server L instance

Yunyao Cloud Server L instance is a new generation of lightweight application cloud server, specially designed for small and medium-sized enterprises and developers, providing a convenient out-of-box experience. This product provides rich and strictly screened application images and can deploy applications with one click, greatly simplifying the process of customers building e-commerce websites, web applications, applets, learning environments, and various development and testing tasks in the cloud.

Insert image description here

1.2 Features of Yunyao Cloud Server L instance

  • Intelligent and non-stuck: Huawei Cloud Qingtian architecture supports software and hardware collaboration combined with AI algorithm intelligent scheduling to provide you with high-quality performance. Huawei Cloud has a global storage and computing network with data transmission latency shorter than the blink of an eye, meeting the high requirements of low network latency scenarios such as games and audio and video.

  • Excellent price, easy to use: super cost-effective, ultra-low threshold, open to use as you like. Multiple instance specifications to balance performance and cost. Technology upgrades optimize cloud costs and benefit more start-ups and developers.

  • It’s easier to get started: order multiple images and resource combinations with one click. A variety of high-quality images have been carefully selected and rigorously tested by Huawei Cloud officials. They cover seven major scenarios and have preset templates, which are quick to build, safe and trustworthy. Automated orchestration, one-click activation of resources, and business online in minutes. Smooth learning curve, wizard-based application construction, and easy application activation.

  • Management is more worry-free: topology, resources, and mirroring are managed visually, and business architecture is transparently managed. Intimate service status reminders, one-click resource renewal and withdrawal, and simplified management. Real-time monitoring of resource load, security, and usage ensures that services are always online. A wide range of optional security services are available, including extensive backup, host security and other services, providing the highest level of security protection.

2. Introduction to ZFile

2.1 Introduction to ZFile

ZFile is a Java-based online network disk program that supports docking with S3, OneDrive, SharePoint, Youpai Cloud, local storage, FTP and other storage sources, and supports online browsing of pictures, audio and video playback, text files and other file types.

2.2 ZFile features

  • Docker, Docker Compose support (amd64/arm64)
  • Responsive design, multi-terminal compatible
  • Support file operations: upload, download, rename, delete, create new folder, etc.
  • The same operating experience as local files, supports drag and drop selection, Ctrl + left mouse button for multiple selections, Shift + click for multiple selections, Ctrl + A to select all, Esc to cancel all selections
  • The same uploading experience as local files, supports Ctrl + V to paste uploaded files/folders, drag and drop to paste uploaded files/folders
  • Picture gallery mode, and supports customizing the number of columns, spacing and other information.
  • Folder encryption
  • Catalog readme document
  • File/folder hiding
  • Custom js, css
  • Supports online browsing of text files, PDFs, pictures, music, and videos (supports mp4, flv, hls)
  • File direct link and QR code
  • Mount multiple storage policies at the same time
  • Supports S3 protocol, Alibaba Cloud OSS, FTP, Huawei Cloud OBS, local storage, MINIO, OneDrive International/Home/Personal Edition/21Vianet Edition/SharePoint, Qiniu Cloud KODO, Tencent Cloud COS, Youpai Cloud USS.

3. Introduction to this practice

3.1 Introduction to this practice

1. This practice is a personal test learning environment, aiming to quickly deploy applications. Please be cautious in the production environment;
2. This practice environment is a Yunyao Cloud Server L instance, and the application image used is Portainer 2.18.4;
3. In Huawei Deploy ZFile online network disk service on Yunyunyao Cloud Server L instance.

3.2 This environmental plan

Server category Application image Intranet IP address Docker version Portainer version
Yunyao cloud server L instance Docker visualization Portainer 192.168.0.168 24.0.4 2.18.4

4. Purchase Huawei Cloud Yaoyun Server L instance

4.1 Purchase Yunyao Cloud Server L instance

  • Purchase steps:

1. Official website link: https://www.huaweicloud.com/product/hecs-light.html
2. Purchase specifications:
Region: North China-Beijing IV;
Application image: Docker visualization-Portainer;
Instance specifications: 2 cores 2G/system Disk 40G/peak bandwidth 3Mbps/traffic package 400G;
instance name: Customize it, edit it here as HECS-L-Portainer;
purchase duration: 1 month.

  • Just pay after selecting the specifications.

Insert image description here

4.2 Check the status of Yunyao Cloud Server L instance

After the purchase is completed, the Yunyao Cloud Server L instance will start quickly, and the status "Running" will be displayed on its management page.

Insert image description here

4.3 Copy the elastic public IP address

On the Huawei Cloud Yaoyun Server L instance management page, copy its elastic public IP address, which will be needed for future remote connections and access.

Insert image description here

4.4 Remote connection to server

Use Xshell to connect to the server remotely and fill in the elastic public IP address of the Yunyao Cloud Server L instance, the server account password.

Insert image description here

5. Check the server environment

5.1 Check operating system version

Check the operating system version of the Yunyao Cloud Server L instance. When using the Portainer application image, the operating system version is Ubuntu 22.04.1 LTS.

root@hcss-ecs-f91c:~# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Check the kernel version of Yunyao Cloud Server L instance.

root@hcss-ecs-f91c:~# uname -r
5.15.0-60-generic

5.2 Check system information

Use the neofetch command to view the basic system information of Huawei Cloud Yaoyun Server L instance.

neofetch

Insert image description here

6. Install java environment

6.1 Check the java environment

Use the following command to check whether to install the Java environment. Huawei Cloud Yaoyun Server L instance uses the Portainer image and does not install the Java environment by default.

root@hcss-ecs-f91c:~# java -v
Command 'java' not found, but can be installed with:
apt install openjdk-11-jre-headless  # version 11.0.20.1+1-0ubuntu1~22.04, or
apt install default-jre              # version 2:1.11-72build2
apt install openjdk-17-jre-headless  # version 17.0.8.1+1~us1-0ubuntu1~22.04
apt install openjdk-18-jre-headless  # version 18.0.2+9-2~22.04
apt install openjdk-19-jre-headless  # version 19.0.2+7-0ubuntu3~22.04
apt install openjdk-8-jre-headless   # version 8u382-ga-1~22.04.1

6.2 Update software source

Use the following command to update the software source.

apt update

6.3 Install openjdk

Use the following command to quickly install openjdk.

apt  install openjdk-8-jdk -y

6.4 Check java version

Use the command to check the java version.

root@hcss-ecs-f91c:~# java -version
openjdk version "1.8.0_382"
OpenJDK Runtime Environment (build 1.8.0_382-8u382-ga-1~22.04.1-b05)
OpenJDK 64-Bit Server VM (build 25.382-b05, mixed mode)

7. Deploy ZFile online network disk service

7.1 Download ZFile software

Create the installation directory /data/zfile

mkdir -p /data/zfile && cd /data/zfile/

Create a new directory /data/zfile/data/ as the local data storage source directory of ZFile.

 mkdir -p /data/zfile/data/

Use the following command to declare the directory where ZFile is installed by default.

export ZFILE_INSTALL_PATH=/data/zfile  

Download the ZFile software package, download address: https://c.jun6.net/ZFILE/.

 wget --no-check-certificate https://c.jun6.net/ZFILE/zfile-release.war

Insert image description here

7.2 View ZFile software directory

Unzip the ZFile package

unzip zfile-release.war && rm -rf zfile-release.war

Insert image description here

View ZFile Software Catalog

root@hcss-ecs-f91c:/data/zfile#  tree -L 2 ./
./
├── bin
│   ├── restart.sh
│   ├── start.sh
│   └── stop.sh
├── data
├── META-INF
└── WEB-INF
    ├── classes
    └── lib

7.3 File authorization

Use the following command to authorize ZFile to start and stop the script file.

chmod +x $ZFILE_INSTALL_PATH/bin/*.sh 

7.4 Modify the listening port

The default listening port of the ZFile service is 8080. You can change the listening port by modifying the configuration file. Here it is modified to port 7635.

vim /data/zfile/WEB-INF/classes/application.properties

Insert image description here

7.5 Start ZFile service

Execute the start.sh script to start the ZFile service.

root@hcss-ecs-f91c:/data/zfile#  ./bin/start.sh
apm home:
OPTS param:
Starting the zfile-4.1.5 ...OK!
PID: 3697

Insert image description here

7.6 Check ZFile service status

Check the 7635 port that the ZFile service listens on. When listening normally, the ZFile service runs normally.

root@hcss-ecs-f91c:/data/zfile#  ss -tunlp |grep 7635
tcp   LISTEN 0      100                *:7635             *:*    users:(("java",pid=3697,fd=193))

7.7 Local access to ZFile service

Execute the following command locally. If the following content appears, it means that the ZFile service is in a normal state.

curl 127.0.0.1:7635

Insert image description here

8. ZFile system initialization configuration

8.1 Release security group ports

Enter the security group management page of Huawei Cloud Yunyao Server L instance and allow port 8080 in the inbound direction.
Insert image description here
Insert image description here

8.2 Stop the firewall

Stop the firewall and check the firewall status.

systemctl stop ufw  &&  systemctl disable  ufw
root@hcss-ecs-f91c:/data/zfile# systemctl status ufw
○ ufw.service - Uncomplicated firewall
     Loaded: loaded (/lib/systemd/system/ufw.service; disabled; vendor preset: enabled)
     Active: inactive (dead)
       Docs: man:ufw(8)

Oct 02 15:33:35 hcss-ecs-f91c systemd[1]: Starting Uncomplicated firewall...
Oct 02 15:33:36 hcss-ecs-f91c systemd[1]: Finished Uncomplicated firewall.
Oct 02 15:34:46 hcss-ecs-f91c systemd[1]: Stopping Uncomplicated firewall...
Oct 02 15:34:47 hcss-ecs-f91c systemd[1]: ufw.service: Deactivated successfully.
Oct 02 15:34:47 hcss-ecs-f91c systemd[1]: Stopped Uncomplicated firewall.

8.3 ZFile network disk program initialization

Enter the ZFile initial configuration page: http://Elastic public IP address:7635/install

Insert image description here

Set the site name, administrator account and password, and customize the settings.

Insert image description here

8.4 Log in to ZFile’s background management

Access address: http://Elastic public IP address:7635/login, use the administrator account just set to log in to ZFile.

Insert image description here

8.5 Basic configuration of ZFile

Basic configuration of ZFile:
site name: my-zfile;
site favicon: currently empty;
backend site domain name: http://elastic public IP address: 7635;
other default configurations are sufficient, click Save Configuration.

Insert image description here

Insert image description here

8.6 Storage source configuration

Please refer to the following to configure the storage source. Set local storage:
storage source name: local;
storage source alias: local;
storage policy: local storage;
file path: /data/zfile/data;
other default configurations, click Save Settings.

Insert image description here
Insert image description here

View storage source information, as shown below.

Insert image description here

8.7 Visit ZFile homepage

Visit ZFile homepage: http://Elastic public IP address: 7635

Insert image description here

9. Basic use of ZFile

9.1 Upload files to ZFile

On the ZFile homepage, click the storage source local.

Insert image description here

Click Upload File and select the file in the local folder.

Insert image description here
Insert image description here
Insert image description here

9.2 View files online

Open the uploaded file directly and you can see the file content.

Insert image description here
Insert image description here

9.3 Generate direct links

Select the file and click Produce Direct Link to generate a sharing link.

Insert image description here
Insert image description here
Insert image description here

10. User experience and summary

This practice "Huawei Cloud Yaoyun Server L Instance Evaluation | Yunyao Cloud Server L Instance Deployment ZFile Online Network Disk Service" was successfully completed. Huawei Cloud Yaoyun Server L instance is a product with excellent performance and good stability, which is very suitable for enterprise applications and personal website operations. During my use, the network was stable and without delays, the operation was smooth and without lags, and the overall experience was very satisfactory. It is a highly recommended cloud server!

Guess you like

Origin blog.csdn.net/jks212454/article/details/133490069