FreeIPA安装后Named service无法启动 - RHEL6.5

2023-11-04 05:08

本文主要是介绍FreeIPA安装后Named service无法启动 - RHEL6.5,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

在RHEL6.5的环境下,安装FreeIPA后Named service无法启动。错误如下:

Configuring DNS (named)[1/9]: adding DNS container[2/9]: setting up our zone[3/9]: setting up reverse zone[4/9]: setting up our own record[5/9]: setting up kerberos principal[6/9]: setting up named.conf[7/9]: restarting named
named service failed to start[8/9]: configuring named to start on boot[9/9]: changing resolv.conf to point to ourselves
Done configuring DNS (named).

检查/var/log/message, 显示如下:

Oct 24 19:15:46 ipa named-sdb[10721]: Failed to parse the principal name DNS/ipa.xionghuilin.com (Configuration file does not specify default realm)
Oct 24 19:15:46 ipa named-sdb[10721]: loading configuration: failure
Oct 24 19:15:46 ipa named-sdb[10721]: exiting (due to fatal error)

参考这个链接, 这个问题的原因可能是chroot导致的某些文件无法正确读取, 标准的解决方案是Howto/FreeIPA with integrated BIND inside chroot,简单的解决方案是卸载bind-chroot软件包。

[root@ipa ~]# yum remove bind-chroot
Loaded plugins: fastestmirror, product-id, subscription-manager
[Errno -2] Name or service not known
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package bind-chroot.i686 32:9.8.2-0.23.rc1.el6_5.1 will be erased
--> Finished Dependency Resolution
http://vault.centos.org/6.5/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'vault.centos.org'"
Trying other mirror.
http://vault.centos.org/6.5/extras/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'vault.centos.org'"
Trying other mirror.
http://vault.centos.org/6.5/updates/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'vault.centos.org'"
Trying other mirror.Dependencies Resolved=============================================================================================================================================================================================Package                                     Arch                                 Version                                                      Repository                               Size
=============================================================================================================================================================================================
Removing:bind-chroot                                 i686                                 32:9.8.2-0.23.rc1.el6_5.1                                    @update                                 0.0Transaction Summary
=============================================================================================================================================================================================
Remove        1 Package(s)Installed size: 0
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running TransactionErasing    : 32:bind-chroot-9.8.2-0.23.rc1.el6_5.1.i686                                                                                                                                1/1
Loading mirror speeds from cached hostfileVerifying  : 32:bind-chroot-9.8.2-0.23.rc1.el6_5.1.i686                                                                                                                                1/1Removed:bind-chroot.i686 32:9.8.2-0.23.rc1.el6_5.1Complete!

卸载bind-chroot软件包后重新启动named

[root@ipa ~]# service named status
rndc: connect failed: 127.0.0.1#953: connection refused
named-sdb is stopped
[root@ipa ~]# service named start
Starting named:                                            [  OK  ]
[root@ipa ~]# service named status
version: 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1
CPUs found: 2
worker threads: 2
number of zones: 21
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running
named-sdb (pid  658) is running...
[root@ipa ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
[root@ipa ~]#
[root@ipa ~]# ipactl status
Directory Service: RUNNING
KDC Service: RUNNING
KPASSWD Service: RUNNING
DNS Service: RUNNING
MEMCACHE Service: RUNNING
HTTP Service: RUNNING
CA Service: RUNNING
[root@ipa ~]#

Reference

freeipa(1)服务器搭建
Bug 742875 - named fails to start after installing ipa server when short hostname preceeds fqdn in /etc/hosts.
RedHat搭建IPA-Server
Re: [Freeipa-users] RHEL 6.4 , IPA 3.0 and bind-chroot
Howto/FreeIPA with integrated BIND inside chroot

这篇关于FreeIPA安装后Named service无法启动 - RHEL6.5的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/343438

相关文章

gitlab安装及邮箱配置和常用使用方式

《gitlab安装及邮箱配置和常用使用方式》:本文主要介绍gitlab安装及邮箱配置和常用使用方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录1.安装GitLab2.配置GitLab邮件服务3.GitLab的账号注册邮箱验证及其分组4.gitlab分支和标签的

MySQL MCP 服务器安装配置最佳实践

《MySQLMCP服务器安装配置最佳实践》本文介绍MySQLMCP服务器的安装配置方法,本文结合实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下... 目录mysql MCP 服务器安装配置指南简介功能特点安装方法数据库配置使用MCP Inspector进行调试开发指

nginx启动命令和默认配置文件的使用

《nginx启动命令和默认配置文件的使用》:本文主要介绍nginx启动命令和默认配置文件的使用,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录常见命令nginx.conf配置文件location匹配规则图片服务器总结常见命令# 默认配置文件启动./nginx

在Windows上使用qemu安装ubuntu24.04服务器的详细指南

《在Windows上使用qemu安装ubuntu24.04服务器的详细指南》本文介绍了在Windows上使用QEMU安装Ubuntu24.04的全流程:安装QEMU、准备ISO镜像、创建虚拟磁盘、配置... 目录1. 安装QEMU环境2. 准备Ubuntu 24.04镜像3. 启动QEMU安装Ubuntu4

Python UV安装、升级、卸载详细步骤记录

《PythonUV安装、升级、卸载详细步骤记录》:本文主要介绍PythonUV安装、升级、卸载的详细步骤,uv是Astral推出的下一代Python包与项目管理器,主打单一可执行文件、极致性能... 目录安装检查升级设置自动补全卸载UV 命令总结 官方文档详见:https://docs.astral.sh/

Nexus安装和启动的实现教程

《Nexus安装和启动的实现教程》:本文主要介绍Nexus安装和启动的实现教程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、Nexus下载二、Nexus安装和启动三、关闭Nexus总结一、Nexus下载官方下载链接:DownloadWindows系统根

MybatisPlus service接口功能介绍

《MybatisPlusservice接口功能介绍》:本文主要介绍MybatisPlusservice接口功能介绍,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友... 目录Service接口基本用法进阶用法总结:Lambda方法Service接口基本用法MyBATisP

Java中实现线程的创建和启动的方法

《Java中实现线程的创建和启动的方法》在Java中,实现线程的创建和启动是两个不同但紧密相关的概念,理解为什么要启动线程(调用start()方法)而非直接调用run()方法,是掌握多线程编程的关键,... 目录1. 线程的生命周期2. start() vs run() 的本质区别3. 为什么必须通过 st

Java SWT库详解与安装指南(最新推荐)

《JavaSWT库详解与安装指南(最新推荐)》:本文主要介绍JavaSWT库详解与安装指南,在本章中,我们介绍了如何下载、安装SWTJAR包,并详述了在Eclipse以及命令行环境中配置Java... 目录1. Java SWT类库概述2. SWT与AWT和Swing的区别2.1 历史背景与设计理念2.1.

Oracle修改端口号之后无法启动的解决方案

《Oracle修改端口号之后无法启动的解决方案》Oracle数据库更改端口后出现监听器无法启动的问题确实较为常见,但并非必然发生,这一问题通常源于​​配置错误或环境冲突​​,而非端口修改本身,以下是系... 目录一、问题根源分析​​​二、保姆级解决方案​​​​步骤1:修正监听器配置文件 (listener.