mongodb - 无法在 RedHat 虚拟机上安装 semanage 工具
问题描述
我正在尝试更改我的 AWS 虚拟机上的 MongoDB 默认端口semanage
,但在服务器上找不到
semanage port -a -t mongod_port_t -p tcp 27042
-bash:semanage:找不到命令
试图找到提供的包semanage
失败。
dnf whatprovides semanage
下载存储库“rhui-client-config-server-8”的元数据时出错:Curl 错误 (58): https://rhui3.eu-west-3.aws.ce.redhat.com的本地 SSL 证书有问题/pulp/mirror/protected/rhui-client-config/rhel/server/8/x86_64/os [could not load PEM client certificate, OpenSSL error error:0200100D:system library:fopen:Permission denied, (no key found, wrong密码短语,或错误的文件格式?)]
错误:无法下载 repo 'rhui-client-config-server-8' 的元数据:无法准备内部镜像列表:Curl 错误 (58):https://rhui3.eu-west-3 的本地 SSL 证书有问题。 aws.ce.redhat.com/pulp/mirror/protected/rhui-client-config/rhel/server/8/x86_64/os [无法加载 PEM 客户端证书,OpenSSL 错误错误:0200100D:系统库:fopen:权限被拒绝,(未找到密钥、密码错误或文件格式错误?)]
dnf update
工作,系统是最新的
上次元数据过期检查:UTC 时间 2020 年 7 月 21 日星期二上午 0:42:00。依赖关系已解决。没事做。完全的!
附加信息:
cat /etc/redhat-release
红帽企业 Linux 8.2 版 (Ootpa)
dnf repolist
回购 ID / 回购名称
mongodb-org-4.2 / MongoDB 存储库
rhel-8-appstream-rhui-rpms / Red Hat Enterprise Linux 8 for x86_64 - 来自 RHUI (RPM) 的 AppStream
rhel-8-baseos-rhui-rpms / Red Hat Enterprise Linux 8 for x86_64 - 来自 RHUI (RPM) 的 BaseOS
rhui-client-config-server-8 / Red Hat Update Infrastructure 3 客户端配置服务器 8
你能帮我安装semanage吗?谢谢。
解决方案
1.dnf install policycoreutils-python-utils 2. dnf 提供semanage (这显示与上面相同的结果-路径) 3. yum 提供/usr/sbin/semanage 4. yum install policycoreutils-python
我用这个解决了我的问题。
你也可以参考这个链接: https ://www.ostechnix.com/linux-troubleshooting-semanage-command-not-found-in-centos-7rhel-7/
推荐阅读
- javascript - JavaScript - 声明全局变量
- windows - 终端中的不可见文本与纱线
- javascript - 从 javascript 中已有的数组中创建新数组
- jquery - Angular - 如何在 angular component.ts 中定义 owl carousel 回调函数?
- c++ - 模板元编程 - g++ 吃掉它,clang 不吃
- reactjs - 为什么我在安装 REACT 时收到此错误?
- php - 警告:session_destroy():试图在第 27 行销毁 D:\xampp\htdocs\PHP\MyBlog\lib\Session.php 中的未初始化会话
- reactjs - 使用酶检查反应“选择”的选定值
- java - 运行时环境与编译器 Java 问题不同?
- php - 子文件夹中的wordpress htaccess未重定向到https