Huawei Cloud Yaoyun Server L instance evaluation | Deploying online lightweight memos

1. Introduction to Yunyao Cloud Server L Instance

1.1 Introduction to cloud server

Cloud servers (Cloud Servers) play an important role in modern computing and business environments. Cloud servers provide organizations with a variety of benefits such as flexibility, cost-effectiveness, global availability, and elasticity, so they have become the core of modern applications and businesses. One of the infrastructure. However, choosing the right cloud service provider and appropriate cloud architecture are critical to achieving optimal performance and cost-effectiveness. Huawei Cloud has newly launched a new product of Huawei Cloud server instances. Huawei Cloud servers have the four advantages of being intelligent and non-stuck, affordable and easy to use, easier to get started, and worry-free management, thus helping you quickly get to the cloud!

Insert image description here

From the end of August to mid-October, if you participate in the evaluation activity of Huawei Cloud Server, you can get a coupon of 54.99 yuan. You can purchase the Huawei Cloud Yaoyun Server L instance and lightweight server for only 0.03yuan per month.

Insert image description here
There is also a limited-time flash sale area , 华为云云耀云服务器L实例with daily limited sales, and the discount is limited to 1 order, while stocks last!

Insert image description here

1.2 Product advantages

  • 智能不卡顿: Supported by Huawei Cloud Qingtian architecture, software and hardware collaboration combined with AI algorithm intelligent scheduling provide you with high-quality performance.
  • 价优随心用: Multiple instance specifications to balance performance and cost.
  • 上手更简单: A variety of high-quality images are carefully selected and rigorously tested by Huawei Cloud officials. They cover seven major scenarios, preset templates, rapid construction, safe and trustworthy.
  • 管理更省心: Visual management of topology, resources, and mirrors, and transparent management of business architecture.

1.3 Application scenarios

Yunyao Cloud Server L instances are suitable for supporting lightweight, low-load and moderately visited application scenarios such as small websites, web applications, blogs, forums, and cloud development environments.

  • 电商店铺管理: Quickly build an independent foreign trade station and store management environment to provide stable and high-quality services to customers at home and abroad.
  • 企业建站: Provides commonly used website building application templates to quickly build websites that meet business needs, such as corporate official websites, information, blogs, forums, e-commerce, etc.
  • 小程序后台: Suitable for building WeChat applets and public account backend services to reduce maintenance costs and allow users to focus on business development.
  • 小游戏: Help customers build PC stand-alone games, casual games, etc., quickly go online and have stable performance.
  • 开发测试: Suitable for building ready-to-use remote development and testing projects in the cloud, running scheduled tasks, automatic tasks, etc.
  • 云端学习: Help students and developers do some experiments, papers, etc. in the cloud.
  • 搭建博客/论坛: It is convenient for individual developers to set up blogs and forums, and it is cost-effective.

1.4 Support mirroring

mirror Introduction
system image Only the initial is included 操作系统, not any 应用数据sum 环境配置. After using a system image to create a cloud server, the server will have a pure operating system environment. You can install applications by yourself based on the business needs of the instance.
Application image Contains applications and related 初始化数据、应用所需的运行环境及操作系统. After you create a cloud server using an application image, you can directly use the preset application or customize the application configuration according to actual business needs. Reduces the steps of application uploading and installation.

Insert image description here

2. Yunyao Cloud Server L instance configuration

2.1 Reset password

After the purchase is completed, a text message will be sent through your cloud server information, focusing on the public IP address and user name. First we need to open your server console, complete the password
Insert image description here
reset, check Automatically restart, and click OK.
Insert image description here

2.2 Server connection

  • Method 1 : Log in using the VNC method provided by the console

  • Method 2 : Use Putty, Xshell and other tools to log in to the Linux elastic cloud server.
    a) Download and install the login tool, such as Putty.
    b) Enter the elastic public IP.
    c) Enter the username: root, password, and click "OK".

  • Method three : Use the Linux/Mac OS system host to log in to the Linux elastic cloud server.
    a) Execute the connection command.
    ssh elastic public IP
    , for example: ssh 123.xxx.xxx.456
    b) Enter the user name: root, password, and log in to the server.

I personally use MobaXtermthis software, add SSH connection, output 公网IP, user name and port (default 22), and connect.

Insert image description here

2.3 Security group configuration

A security group is a logical grouping that provides access policies for cloud servers in the same VPC. Users can define various access rules in the security group. When the cloud server joins the security group, it will be protected by these access rules.

The system creates a default security group for each network card by default. The rules of the default security group are to allow all data packets in the outbound direction and restrict access in the inbound direction. You can use the default security group or create a custom security group if needed.
Insert image description here
You mainly need to fill in the priority (fill in 1 by default) and protocol port information (generally select the port that your project needs to expose), and click OK for other defaults. Security group configuration is mainly to expose ports to the external network for access.
Insert image description here
If you are still unclear, you can refer to the document: Security Group Configuration Example

3. Deploy memos

3.1 Introduction to memos

memos is a privacy-first, lightweight note-taking service that makes it easy to capture and share your great ideas.

key point

  • Open source and always free: Embrace a borderless future of creativity with our open source solutions
  • Support Markdown: Say goodbye to the heavy psychological burden caused by rich formats and embrace a minimalist approach
  • Rich functions: supports file resource library, tags, to-do items, code snippets, global search, project archiving, daily review
  • Easy customization: You can customize server name, icon, description, customize system style, execute scripts, etc.
  • Share Notes: Easily collaborate with others and distribute your notes with our intuitive sharing features
  • Self-hosted with Docker: Enjoy the flexibility, scalability, and ease of setup provided by Docker, giving you complete control over your data and privacy
  • Privacy first: keep your own data yourself, all data generated during runtime is saved in SQLite database files
  • RESTful API for third-party services: Embrace the power of integrations and unlock new possibilities with our RESTful API support

Insert image description here
The design of memos is very simple, not cumbersome, and has no ads. We often need to record something in our work and daily life. Some use Evernote, Yuque, WeChat or mobile phone memos. We often write a little bit and a little bit, as needed. It’s very troublesome to search everywhere, and there are various membership fees and advertising restrictions. The intuitive and simple user interface designed by memos is easy to use, local storage, safe storage of files and synchronization of multiple devices are very convenient for us to view by ourselves.

  • Official website: https://usememos.com/

3.2 Docker environment setup

This server environment is an ubuntu system image, and you need to install the docker environment yourself.

Server category system image Intranet IP address Docker version Operating system version
Yunyao cloud server L instance Ubuntu 192.168.0.168 20.10.24 Ubuntu 22.04.1 LTS

Install docker using snapcommand

root@hcss-ecs-f632:~# snap install docker
docker 20.10.24 from Canonical✓ installed

Test dockerwhether the installation is successful

root@hcss-ecs-f632:~# docker -v
Docker version 20.10.24, build 297e128

Check dockerservice status

root@hcss-ecs-f632:~# systemctl status docker
● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2023-09-14 14:25:21 CST; 2 days ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
   Main PID: 30672 (dockerd)
      Tasks: 73
     Memory: 137.0M
        CPU: 2min 37.906s
     CGroup: /system.slice/docker.service

Check docker composeversion

root@hcss-ecs-f632:~# docker compose version
Docker Compose version v2.17.2

3.3 memos deployment

  • Download image

Pull the memos image from docker hub, address: https://hub.docker.com/r/neosmemo/memos

root@hcss-ecs-f632:~# docker pull neosmemo/memos
Using default tag: latest
latest: Pulling from neosmemo/memos
7264a8db6415: Pull complete
976dea9f1de9: Pull complete
d932a01205f7: Pull complete
13b93210802f: Pull complete
9a2f85024bfa: Pull complete
Digest: sha256:0e64a5a7d922cc74949b98bc64ce905f5751a5f9b1f75968470592b8b483c2fc
Status: Downloaded newer image for neosmemo/memos:latest
docker.io/neosmemo/memos:latest
  • Configure security group

On the security group management page of Huawei Cloud Yaoyun Server L instance, add inbound rules. Next, when we start the service, we need to listen to port 5230, so we add the security group as the TCP:5230protocol port.

Insert image description here

  • Start service

Start using docker-composethe method, first create the filedocker-compose.yml

version: "3.0"
services:
  memos:
    image: neosmemo/memos:latest
    container_name: memos
    volumes:
      - ./memos/:/var/opt/memos
    ports:
      - 5230:5230
  • Volumes: Maps the file path inside the container to the local
  • ports: Configure access ports

If you save the above code snippet in a file called docker-compose.yml, you can simply run docker-compose.yml from the same folder to docker compose up -dautomatically pull the memos image and create and start a container. upIndicates starting the service and -dexecuting it in the background. docker-compose downCommands are used to stop and clean up docker-compose upservices started by .

root@hcss-ecs-f632:~/memos# docker-compose up -d
Creating network "memos_default" with the default driver
Creating memos ... done
  • Check container status

Check the status of the memos container to ensure that the container starts normally

root@hcss-ecs-f632:~/memos# docker ps
CONTAINER ID   IMAGE                        COMMAND                  CREATED          STATUS                       PORTS                                                                           NAMES
8afd0d5d5435   neosmemo/memos:latest        "./memos"                53 minutes ago   Up 53 minutes                0.0.0.0:5230->5230/tcp, :::5230->5230/tcp                                       memos
  • address

Intranet: http://localhost:5230
External network: http://Public IP:5230

  • Access results

Insert image description here
If this page appears, the memos server is deployed successfully.

3.4 Use of memos

After successful access, click Sign into register an administrator account, set the user name and password to register.
Insert image description here

After completing the registration, log in to enter the administrator account. The administrator account is the administrator of this service and can also use the memo function as an ordinary user. Specific interface function introduction:

  • Avatar bar: personal homepage, RSS subscription, about, logout
  • Left sidebar functions: homepage, daily review, resource library, exploration, archiving, settings
  • Intermediate subject: 编辑部分: label, upload file, to-do, code snippet, access permission, 展示部分: display added memo
  • Right sidebar functions: global search function, calendar mark, all tags

Insert image description here

For the convenience of reading, first 设置 - 偏好设置 - 语言modify it to Simplified Chinese

Insert image description here

Add a plain text memo

Insert image description here

add a picture

Insert image description here

Add a piece of code, and each memo also supports pin, edit, quote, archive, and delete functions.

Insert image description here

The files we uploaded are displayed in the resource library

Insert image description here

Click on the personal avatar and select Profileto view all the contents of the personal homepage

Insert image description here

There are also many setting functions. We can set 我的账号avatars, usernames and passwords. As an administrator account, we can view registered ones. 成员By default, only administrator accounts can add users and passwords, and they cannot register by themselves.

Insert image description here
In order to realize the user's self-registration and login, it can be done in 系统the settings .允许用户注册
Insert image description here

We try to register an ordinary user by ourselves, enter the user name and password, click register first and then log in. Entering the
Insert image description here
ordinary user interface, we still set the language to Simplified Chinese. The setting function for ordinary users has many fewer configuration items, but the memo function is still the same.

Insert image description here
全部可见When we set the access permission of the memo , we can 探索see this memo again
Insert image description here
. Let’s check the structure of the memos mapping file path.

root@hcss-ecs-f632:~/memos/memos# ls
assets  memos_prod.db  memos_prod.db-shm  memos_prod.db-wal
  • assetsDirectory used to store files uploaded to the resource library
  • memos_prod.dbUsed to store personal user data to facilitate data migration

The personal use of memos memos is just the above. More functions and configurations need to be explored by yourself.

4. Summary

Yunyao Cloud Server L instance is a new generation of out-of-the-box lightweight application cloud server built for small and medium-sized enterprises and developers. Yunyao Cloud Server L instance provides a rich and carefully selected application image, enabling one-click deployment of applications, helping customers to build e-commerce websites, web applications, applets, learning environments, various development tests, etc. in the cloud conveniently and efficiently.

Moreover, the threshold for using Yunyao Cloud Server L instances is low. If you are an entry-level user who is learning about cloud computing services, or an individual developer or small and medium-sized enterprise who needs to deploy simple applications in the server, such as deploying some lightweight and interesting project, then it is recommended that you choose 云耀云服务器L实例.

Guess you like

Origin blog.csdn.net/weixin_44008788/article/details/133473026