当前位置:网站首页>ngx+sql环境离线安装日志(rpm安装)
ngx+sql环境离线安装日志(rpm安装)
2022-07-28 20:46:00 【5xp_2001】
记一次离线rpm安装记录;
os版本: CentOS Linux release 7.9.2009 (Core
生产环境无法链接外网 使用本地虚拟机测试安装所需包
配置epel源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum install nginx
正在安装:
nginx x86_64 1:1.20.1-2.el7 epel 586 k
为依赖而安装:
centos-indexhtml noarch 7-9.el7.centos base 92 k
gperftools-libs x86_64 2.6.1-1.el7 base 272 k
nginx-filesystem noarch 1:1.20.1-2.el7 epel 23 k
openssl11-libs x86_64 1:1.1.1g-3.el7 epel 1.5 M
在本地环境使用yum 下载rpm包 ,
yumdownloader nginx-filesystem openssl11-libs
远程安装时再次提示依赖缺失如下 再次yumdownloader 然后传输到生产环境
gnome-keyring-3.28.2-1.el7.x86_64
gnome-keyring-3.28.2-1.el7.x86_64
python-meh-0.25.3-1.el7.noarch
最终安装完毕nginx 安装操作有效日志如下
500 yum reinstall python-meh-0.25.3-1.el7.noarch.rpm
501 ls
502 rpm -ivh gnome-keyring-3.28.2-1.el7.x86_64.rpm
503 ll
504 rpm -ivh net-tools-2.0-0.25.20131004git.el7.x86_64.rpm
505 rpm -ivh nginx-filesystem-1.20.1-2.el7.noarch.rpm
506 rpm -ivh openssl11-libs-1.1.1g-3.el7.x86_64.rpm
507 yum localinstall nginx-1.20.1-2.el7.x86_64.rpm
508 systemctl status nginx
mysql如下: 需要注意安装顺序,相互依赖问题较多
#@=================================================
因为GFW问题 使用以下源yumdownloader总是timeout
1026 wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
1027 rpm -Uvh https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm
测试本地安装需要的源
yum --enablerepo=mysql80-communityyum install mysql-community-server
正在安装:
mysql-community-libs x86_64 8.0.26-1.el7 mysql80-community 4.0 M
替换 mariadb-libs.x86_64 1:5.5.68-1.el7
mysql-community-libs-compat x86_64 8.0.26-1.el7 mysql80-community 1.2 M
替换 mariadb-libs.x86_64 1:5.5.68-1.el7
mysql-community-server x86_64 8.0.26-1.el7 mysql80-community 434 M
为依赖而安装:
mysql-community-client x86_64 8.0.26-1.el7 mysql80-community 46 M
mysql-community-client-plugins x86_64 8.0.26-1.el7 mysql80-community 4.5 M
mysql-community-common x86_64 8.0.26-1.el7 mysql80-community 620 k
net-tools x86_64 2.0-0.25.20131004git.el7 base 306 k
所需包下载后安装顺序如下
注意 报错提示Mariadb包obsoleted, 需要yum remove
mysql-community-common
mysql-community-client-plugins
yum remove mariadb-libs
mysql-community-libs
mysql-community-libs-compat
mysql-community-client
备用:如果国外镜像源总是timeout,可以手动从以下地址下载:
浏览器访问国内源 手动下载对应的rpm包 下载地址使用以下地址:
https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql80-community-el7/
最终
mysql-community-server-8.0.26-1.el7.x86_64
nginx-1.20.1-2.el7.x86_64
11月18补充yum本地环境配置信息:
初始化repo
在rpm目录下执行 createrepo .
[[email protected] sql8]# ls
mysql-community-client-8.0.26-1.el7.x86_64.rpm mysql-community-libs-8.0.26-1.el7.x86_64.rpm repodata
mysql-community-client-plugins-8.0.26-1.el7.x86_64.rpm mysql-community-libs-compat-8.0.26-1.el7.x86_64.rpm
mysql-community-common-8.0.26-1.el7.x86_64.rpm mysql-community-server-8.0.26-1.el7.x86_64.rpm
[[email protected] sql8]# pwd
/home/jtwy1/mysql8/sql8
写yum配置文件
cat /etc/yum.repos.d/MYSQL.repo
[c7-media]
name=CentOS-$releasever - Media
#baseurl=file:///home/jtwy1/centos/
baseurl=file:///home/jtwy1/mysql8/sql8
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
边栏推荐
- HCIP(11)
- log4j漏洞 elk平台 处理方法 (logstah5.5.1)
- Desai wisdom number - line chart (stacking area chart): ranking of deposits of different occupational groups in the proportion of monthly income in 2022
- SQL注入 Less38(堆叠注入)
- HCIP(15)
- HCIP(15)
- MySQL built-in functions
- Idea generate class diagram plug-in UML (super detailed)
- Record the fluent to solve the problem of a renderflex overflowed by 7.3 pixels on the bottom
- Differences of display values
猜你喜欢
Static details of static members
Learning notes and summary of C language programming specification
Sword finger offer II 054. Sum of all values greater than or equal to nodes (medium binary search tree DFS)
HCIP(12)
If you want to grow rapidly, you must first experience a major blow!
HCIP第七次实验
JMeter installs third-party plug-ins plugins Manager
What are the main functions and uses of LCR tester
Netease Yunxin 2022q2 product supply station, come and get your product supply plan!
96. Different binary search trees (medium binary search tree dynamic planning)
随机推荐
Openresty request authentication
成立不到一年!MIT衍生量子计算公司完成900万美元融资
Necessary for in-depth learning: split the data set, split the labels according to the split pictures, and check the interval of all marked labels
Use webworker to perform background tasks
Netease Yunxin 2022q2 product supply station, come and get your product supply plan!
tutorial/detailed_workflow.ipynb 量化金融Qlib库
Less than a year after its establishment! MIT derivative quantum computing company completed financing of US $9million
JMeter installs third-party plug-ins plugins Manager
ECMASript 5/6 笔记
Hcip experiment (15)
Which is the file transfer command in the basic services of the Internet
mysql create语句能不能用来建立表结构并追加新的记录
What are the main functions and uses of LCR tester
Sword finger offer II 055. Binary search tree iterator (medium binary search tree iterator)
LVS+KeepAlived高可用部署实战应用
HCIP(13)
Day3 classification management of Ruiji takeout project
容器化配置启动redis集群 单机6节点 3主3从
Ruiji takeout - background login function development
[CVPR 2021] cylinder3d: cylindrical asymmetric 3D convolution network for LIDAR point cloud segmentation