Installing Tengine by Using the Yum Source Obtained from a Mirror Site
|
Software Version |
Whether to Support CentOS 7.6 |
Whether to Support CentOS 8.1 |
Whether to Support openEuler 20.03 (LTS-SP1) |
|---|---|---|---|
|
Tengine 2.2.2 |
Yes |
No |
No |
|
Tengine 2.2.3 |
No |
No |
No |
The binary packages available at the Kunpeng mirror site are compiled and packaged based on the open source code, and do not involve vulnerability or bug fixes.
When using open source software, comply with the applicable license.
- Check that the Internet connection is normal.
1curl www.baidu.com - Configure the network source.
- Go to the /etc/yum.repos.d directory.
1cd /etc/yum.repos.d
- Create an rpm.repo file.
- Create an rpm.repo file.
1vim rpm.repo - Press i to enter the insert mode and add the following content to the rpm.repo file:
[rpm] name=rpm baseurl=https://mirrors.huaweicloud.com/kunpeng/yum/el/7/aarch64/ gpgcheck=0 enabled=1
The path specified by baseurl is the address of the mirror site.
Press Esc, type :wq!, and press Enter to save the file and exit.
- Create an rpm.repo file.
- Go to the /etc/yum.repos.d directory.
- Make the network source take effect.
1 2 3
yum clean all yum makecache yum list
- Install Tengine using the Yum source.
1yum -y install tengine-2.2.2-1.el7_4.ngx.aarch64 --enablerepo=rpm
- View the installation directory.
1ls /usr/local/tengine-nginx/
- View the version.
1/usr/local/tengine-nginx/sbin/nginx -v
Parent topic: Installing Tengine