I. Introduction
When you perform some server operations on your own computer, you basically use CentOS 7
or CentOS 8
, but at the end of 2021, CentOS 8 announced that it will stop maintenance; CentOS 7 will also stop maintenance on June 30, 2024!
So it's time for us to change to another operating system. After more than ten years of precipitation, Ali brought the operating system - "龙蜥"(Anolis OS)
here we come!
For us, it is still necessary to support domestic products, after all, they will not be monitored by foreign countries, safe! In terms of performance, Ali’s business can be supported, and ours should be fine. It’s good for us to deploy our own local servers and build some environments!
Fully compatible CentOS
, the official website also has some migration articles, if you are interested, you can take a look!
2. Introduction to Anolis OS
1 Introduction
At the 2021 Yunqi Conference, Alibaba Cloud released a new operating system "龙蜥"(Anolis OS)
and announced 开源
. The Dragon Lizard operating system is positioned in the server market and supports x86、ARM、LoongArch
a variety of hardware architectures. The Dragon Lizard operating system is fully open source,Compatible with CentoS ecology, providing services through open source communities and operating system vendors,Technical support for at least 10 years。
The Dragon Lizard system has made multiple optimizations especially for the development of cloud-native applications. It is 综合性能可提升40%
also 故障率可降低50%
compatible CentOS生态
, supported 一键迁移
, and provided for typical scenarios on the cloud 全栈国密能力
.
The Dragon Lizard system is expected to succeed CentOS and continue to serve the public. Therefore, it is necessary to be compatible with the CentOS ecosystem and reduce migration costs. Alibaba Cloud's Longduan system 欧拉系统
is similar to Huawei's. As the two largest cloud service providers in China, it is very necessary to have their own operating system.
2. Technical highlights
- Compatible with CentOS software ecology Compatible
with CentOS software ecology, compatible with international mainstream Linux vendor releases - Support Dragonwell cloud native Java
- Support Linux Kernel 4.19 LTS
Support Linux Kernel 4.19 LTS version and synchronize the latest achievements of the upstream community to help users obtain the innovation dividend of the open source community in time - Support multi-computing architecture and mainstream server hardware
Support x86_64 and aarch64 architecture and Phytium, Haiguang, Zhaoxin, Kunpeng and other chips, adapt to x86 and arm64 mainstream server hardware - Provide migration tools
Provide migration tools from CentOS system to Anolis OS to help the smooth migration of systems and applications - Support open source distributed relational database OceanBase
- Support for secure containers Kata Containers
- Support open source cloud-native relational database PolarDB
Next-generation relational cloud-native database
3. Development history
3. Installation experience
Having said so much, it is better to experience it!
This time, VMware16 is used to install!
1. Download mirror
We directly download the latest version!
This download x86 64
type:
click to download:
remind: You can use Thunder to download faster!
Thunder money! ! !
2. Create a new virtual machine
We use a typical installation
Let's skip the image first, and then install it later:
We can install it as CentOS 8, and it seems that 7 is also possible!
Try not to place it on the C drive!
Test here, 20GB is enough!
3. Edit the virtual machine
Click Finish, and you will go to the main interface:
Select Edit
Let’s configure the memory and processor. Here, the editor’s memory is set to 4GB, and the processor is 2 cores and 2 threads!
It is mainly Anolis OS
a mirror image of the configuration!
The configuration is complete:
4. Start the initialized virtual machine
We start the virtual machine and select the first one:
If you like English, you can switch it by yourself, just continue!
We assign the installation destination to him, otherwise it is a warning!
Configure the root password:
You can install the smallest one in the software selection, so the speed is faster. The installation here has an interface. The main purpose is to see if it is the same as CentOS. Let’s start the installation!
After the installation is complete, restart the system:
5. Initialization
We need to agree to the license agreement:
We finish the configuration, don't create a user, just use root directly!
Welcome Screen:
Turn off positioning:
Configure your account information:
set password:
start using:
The interface is not the same as CentOS:
6. use
CentOS has a command line on the right button. After searching for this for a while, I found that there is an activity in the upper left corner, and it will come out when clicked!
There is a big hole here:
I don't know why, but the editor doesn't automatically connect to the network. After a long time, I thought there was something wrong with my installation. There are too few tutorials for AnolisOS on the Internet!
We can connect it in the upper right corner!
Check the ip, Xiao Bian is still accustomed to using it xshell
to operate!
ifconfig
4. Test use
Test to install docker and run an nginx to see if it can be accessed and used normally!
To install docker, you can read the article written by the editor before, and I will not take everyone to install it here!
1. Interlude
When installing docker, we can install centOS to install it, and an error will appear:
软件包 podman-2:4.1.1-2.module+an8.6.0+10825+318933f1.x86_64 需要 runc >= 1.0.0-57,
但没有提供者可以被安装
(尝试在命令行中添加 '--allowerasing' 来替换冲突的软件包 或
'--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用软件包的最佳候选)
Tell us the solution:
add parameter replacement or skip after the command:
sudo yum install docker-ce docker-ce-cli containerd.io --allowerasing
You can take a look at the xshell connection virtual machine:
2. Run the nginx container
docker run --name nginx -d -p 80:80 nginx
3. Turn off the firewall
systemctl stop firewalld.service
View fire status:
systemctl status firewalld
4. Test Access
Port 80 can be ignored:
http://192.168.239.139/
V. Summary
After experiencing it for a while, it is actually non-perceptual, and there are some differences in some places, but the obvious reminder in English before has become Chinese!
It feels good, but there is a problem, and there is still relatively little information on the Internet, so I can only go to the community to ask questions!
The ecology is gradually improving, and more people use it, and there will be more tutorials slowly. For our development, we still need to support domestic production!
The predecessors planted trees and the descendants enjoyed the shade. It is helpful to you. Please don't be stingy with your little hands who make a fortune and pay attention to it!
Pay attention to the editor's WeChat public account, and communicate and learn together! Read the article first!