环境配置
配置本地yum源检查依赖环境:# yum -y install gccglibcglibc-common php php-gdperlhttpd gdgd-developensslopenssl-devel如果gd-devel未安装成功不影响。
1.出现问题:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误"
One of the configured repositories failed (未知),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
如下;
解决:检查网络配置是否正常
在linux下ping一下看看是不是网络链接正常。出现这种原因就是一般网络没链接好。那修改一下dns,找到/etc/sysconfig/network-scripts/ifcfg-ens33进行如下修改
检查网络是否ping通
成功后再运行命令
2.出现问题:/var/run/yum.pid 已被锁定,PID 为 4121 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to exit...
另一个应用程序是:PackageKit
内存:164 M RSS (1.0 GB VSZ)
已启动: Wed May 25 14:27:33 2022 - 03:05之前
状态 :睡眠中,进程ID:4121
解决方法: rm -f /var/run/yum.pid
成功
创建ngaios用户和组
xshell上传并解压软件包