当前位置:网站首页>Galaxy Kirin server system building local and LAN Yum source
Galaxy Kirin server system building local and LAN Yum source
2022-07-19 06:51:00 【weixin_ fifty-four million seven hundred and fifty-two thousand】
yum Main management based on rpm Software package , It can be upgraded automatically 、 install 、 Delete rpm software package , At the same time, it can automatically find and solve rpm Dependencies between packages , And there is no need for administrators to 、 Install each one manually rpm package .yum It can be from one or more repo Configured in the file repo Warehouse , adopt http or ftp The agreement is from repo The warehouse obtains the necessary information , Then download the relevant software package . such , Local users set up different repo Warehouse , It is convenient to upgrade and maintain the system .
preparation : Prepare a galaxy Kirin server operating system image of the same version as this server , Orders available nkvers Check the system version

One 、 Local yum Source building
1、 Create a mirror mount Directory , command :mkdir /mnt/iso, And mount the image to this directory , command :mount XXX.iso /mnt/iso. After the mount is successful, you can use the command df -hT View the mount .

2、 modify yum The configuration file /etc/yum.repos.d/kylin_x86_64.repo, The original yum Configuration file backup , And then make changes .
cd /etc/yum.repos.d
cp kylin_x86_64.repo kylin_x86_64.repo.bak
vim kylin_x86_64.repoCan be kylin_x86_64.repo The file is modified as shown in the following figure
###Kylin Linux Advanced Server 10 - os repo###
[ks10-adv-os] #yum Source name
name = Kylin Linux Advanced Server 10 - Os # Full name
baseurl = file:///mnt/iso # Download source address
gpgcheck = 0 # Whether to check rpm Digital signature of the package ,1 Means to check ,0 Means not to check
enabled = 1 # Is it enabled? ,1 Means to enable ,0 Indicates that... Is not enabled 3、 Remove the original yum Information , Load new cache , Such a new local yum The source can be used .
#yum clean all
#yum makecacheTwo 、 LAN yum Source building
It's usually passed apache To build http Of yum Source , This use nginx Conduct the construction demonstration , First download nginx Source package , Download address :Index of /download/Index of /download/https://nginx.org/download/nginx-1.16.1.tar.gz( If the image has been mounted and the local yum Source , It can be installed directly online :yum -y install nginx, This demo uses the source code package )
Online installation nginx After success ,nginx Configuration file in /etc/nginx/nginx.conf Next , The configuration file is modified as shown in the following figure , Commands available :systemctl start nginx 、systemctl stop nginx 、systemctl status nginx To start up 、 stop it 、 see nginx state . Other operations are the same as source package installation .

1、 Decompress the source package , Compilation and installation nginx
# tar -xf nginx-1.16.1.tar.gz decompression nginx Source package
# cd nginx-1.16.1 Switch to the decompressed nginx Folder
# ./configure --prefix=/usr/local/nginx configure Command to check whether the current system meets the installation conditions , Specify how to install 、 The installation directory 、 Turn on the module function .--prefix: Specify the installation directory
# make -j4 Use gcc Compile , Generate the main binary file (-j4 Appoint 4 individual cpu Compile together , Default one cpu Compile , Faster )
# make install Install binaries to the host 2、nginx After installation , establish yum Source warehouse directory , To mount iso Copy the image to this directory
# mkdir /mnt/nginx-yum establish yum Warehouse directory
# mount Kylin-Server-10-SP2-Release-Build09-20210524.iso /mnt/iso Mount the image
# cp -rp /mnt/iso/* /mnt/nginx-yum/ Copy the image file to yum Warehouse After copying , Use the command to check whether the copy is successful
3、 modify nginx In profile http Module server modular . command :vim /usr/local/nginx/conf/nginx.conf
Check the local firewall policy after modifying the port , If the firewall is turned on , Should be 8899 The port is added to the firewall white list , And overload firewalls
firewall-cmd --permanent --zone=public --add-port=8484/tcp add to 8899 port
firewall-cmd --zone=public --list-ports View open ports
systemctl reload firewalld Reload firewall 4、 After modifying the configuration file , Check whether the configuration file is modified correctly and restart nginx.
5、 Modify other machines in the LAN yum The configuration file /etc/yum.repos.d/kylin_x86_64.repo in baseurl Is the local address .
Remove the original yum Information , Load new cache
#yum clean all
#yum makecache
6、 After the above steps are completed , LAN yum The source can be used , You can download a software to test , You can also enter :http://ip:8899 Visit .
边栏推荐
- 文本三劍客之awk命令--截取
- 高并发day01(NIO、ConCurrent包)
- 小迪-网络安全 笔记(1)
- Restapi implementation of automatic completion & case implementation (search box input for automatic completion)
- Wu Enda machine learning chapter 10-11
- 高并发day04(ZAB协议,观察者,nc,AVRO,RPC)
- 小迪网络安全笔记-信息收集-架构、搭建、waf(8)
- 渣渣学习之路(2)纯小白向:Win Server 2003服务器搭建
- libevent 报 undefined reference to `getrandom‘
- Machine learning - classification prediction of logistic regression
猜你喜欢

2022-7-15 cheap domestic PLC industrial control board with scattered records of 485 master-slave communication

F5LTM(一)逻辑关系图

What is data center?

F5 GTM (I): DNS parameters

Talk about Zhongtai: my understanding and thinking about Zhongtai
![[CS Genesis] comparative analysis of advantages and disadvantages of SD NAND and raw NAND](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[CS Genesis] comparative analysis of advantages and disadvantages of SD NAND and raw NAND

TCP/IP协议学习

双代号时标网络图

wireshark抓包:报文信息

开发板训练:STM32下的多任务程序
随机推荐
redis
Vcenter6.7安装及排错
Part of the second Shanxi Network Security Skills Competition (Enterprise Group) WP (II)
促进数字世界的信任
top命令
政府采购如何用好成本补偿合同
伺服电机的电子齿轮比如何确定?
Share the successful cooperation between CS brand sdnand and wearable devices
Thales安全解决方案:怎么提高国家网络安全的关键步骤
文本三劍客之awk命令--截取
基于Ardunio IDE软件开发编程学习
Face recognition error
Temperature acquisition experiment and experimental experience based on I2C
《PyTorch深度学习实践》-B站 刘二大人-day3
Pytorch deep learning practice-b station Liu erden-day6
轻重搭配(贪心)
使用Altium Designer软件绘制一个基于stm32设计
notepad++下划线以及大小写字母置换
MySQL MySQL calculates the number of weekends this year (Saturday and Sunday)
Learning about STM assembler design