yum 更新後,MySqld 服務無法在 Redhat7 上啟動

yum 更新後,MySqld 服務無法在 Redhat7 上啟動

我在 yum 更新後遇到了 Redhat7 的問題。各種服務無法啟動並給予權限錯誤。

類似的問題 CentOS安裝iRedMail後無法啟動任何服務 但不同的作業系統,所以可能會出現不同的問題。

谷歌搜尋錯誤訊息將我帶到上面的鏈接,因此我嘗試了一些相同的修復,請參閱下面每個修復的輸出。請幫忙!


service mysqld restart

重定向到/bin/systemctl restart mysqld.service 取得權限時出錯:初始化權限時出錯:用盡了所有可用的身份驗證機制(嘗試過:EXTERNAL、DBUS_COOKIE_SHA1、ANONYMOUS)(可用:EXTERNAL、DBUS_COOKIE_SHA1、ANONYMOUS)(可用:EXTERNAL、DBUS_COOKIE_SHA1、ANONYMOUS)(可用:EXTERNAL、DBUS_COOKIE_SHA1、ANONYMOUS)(可用:EXTERNAL、DBUS_COOKIE_SHA1、ANONYMOUS)(可用:EXTERNAL、DBUS_COOKIE_SHA1、ANONYMOUS)(可用:EXTERNAL、DBUS_COOKIE_SHA1、ANONYMOUS)(可用:EXTERNAL、DBUS_COOKIE_SHA1、ANONYMOUS) g-io-error-quark, 0) mysqld.service 作業失敗,因為控製程序退出並出現錯誤代碼。有關詳細信息,請參閱“systemctl status mysqld.service”和“journalctl -xe”。


我昨天執行的 yum 更新包括以下軟體包:

grep "Mar 13.*" /var/log/yum.log  | awk '{ print $5 }' | grep policy
  • selinux-policy-3.13.1-166.el7_4.9.noarch
  • selinux-policy-targeted-3.13.1-166.el7_4.9.noarch

嘗試重新安裝,但沒有改變,也嘗試重新安裝以下內容,以及上面的selinux策略。 (沒有喜悅)

  • rpm -qi dbus
  • rpm -qi polkit

systemctl status dbus

â dbus.service - D-Bus 系統訊息匯流排已載入:已載入(/usr/lib/systemd/system/dbus.service;靜態;供應商預設:停用) 活動:自2018 年3 月14 日星期三起活動(運行) 15:世界標準時間 12:45; 47 分鐘前主PID: 677 (dbus-daemon) CGroup: /system.slice/dbus.service ââ677 /bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-.. .

3 月 14 日 15:12:45 systemd[1]:啟動 D-Bus 系統訊息匯流排。
三月 14 日 15:12:45 systemd[1]: 啟動 D-Bus 系統訊息匯流排...
三月14 日15:29:10 dbus-daemon[677]: dbus[677]: [system] 無法重新載入設定.. .ed
3月14日15:29:10 dbus-daemon[677]:無法重新載入設定:無法...ed
3月14日15:29:10 dbus-daemon[677]:dbus[ 677]:[系統]無法重新載入配置...ed

journalctl -u dbus

3 月 14 日 15:12:45 systemd[1]:啟動 D-Bus 系統訊息匯流排。
3 月 14 日 15:12:45 systemd[1]:啟動 D-Bus 系統訊息匯流排...
3 月14 日15:29:10 dbus-daemon[677]:dbus[677]:[system] 無法重新載入設定:失敗開啟「/etc/dbus-1/system.conf」:權限被拒絕
3月14日15:29:10 dbus-daemon[677]:無法重新載入設定:無法開啟「/etc/dbus- 1/system.conf” “: 沒有權限

ls -l /etc/dbus-1/system.conf

-rw-r--r-- 1 root root 2991 2016 年 9 月 12 日 /etc/dbus-1/system.conf


systemctl start polkit

取得權限時出錯:初始化權限時出錯:用盡了所有可用的身份驗證機制(已嘗試:EXTERNAL、DBUS_COOKIE_SHA1、ANONYMOUS)(可用:EXTERNAL、DBUS_COOKIE_SHA1、ANONYMOUS)(g-io-error-quark,0)polkit .service 的作業失敗,因為已超出逾時時間。有關詳細信息,請參閱“systemctl status polkit.service”和“journalctl -xe”。


namei -l /etc/dbus-1/system.conf  

f: /etc/dbus-1/system.conf
drwxr-xr-x root root /
drw-------- root root etc
drwxr-xr-x root root dbus-1
-rwxr-xr-x root 根系統.conf


此外,這是升級的內容的完整列表...我想我應該從備份中恢復...

  • 1dhclient-4.2.5-58.el7_4.3.x86_64
  • 1dhcp-common-4.2.5-58.el7_4.3.x86_64
  • 1dhcp-libs-4.2.5-58.el7_4.3.x86_64
  • 3bind-libs-9.9.4-51.el7_4.2.x86_64
  • 3bind-libs-lite-9.9.4-51.el7_4.2.x86_64
  • 3bind-license-9.9.4-51.el7_4.2.noarch
  • 3bind-utils-9.9.4-51.el7_4.2.x86_64
  • accountservice-0.6.45-3.el7_4.1.x86_64
  • accountservice-libs-0.6.45-3.el7_4.1.x86_64
  • apr-1.4.8-3.el7_4.1.x86_64
  • at-3.1.13-22.el7_4.2.x86_64
  • binutils-2.25.1-32.base.el7_4.2.x86_64
  • colordiff-1.0.13-2.el7.noarch
  • 複製jdk-configs-2.2-5.el7_4.noarch
  • cryptsetup-1.7.4-3.el7_4.1.x86_64
  • cryptsetup-libs-1.7.4-3.el7_4.1.x86_64
  • cryptsetup-python-1.7.4-3.el7_4.1.x86_64
  • 捲曲-7.29.0-42.el7_4.1.x86_64
  • 設備映射器-多路徑-0.4.9-111.el7_4.2.x86_64
  • 裝置映射器-多路徑-libs-0.4.9-111.el7_4.2.x86_64
  • 設備映射器持久性資料-0.7.0-0.1.rc6.el7_4.1.x86_64
  • dleyna-server-0.5.0-2.el7_4.x86_64
  • dracut-033-502.el7_4.1.x86_64
  • dracut-config-rescue-033-502.el7_4.1.x86_64
  • dracut-network-033-502.el7_4.1.x86_64
  • epel-release-7-11.noarch
  • 火狐-52.6.0-1.el7_4.x86_64
  • gdb-7.6.1-100.el7_4.1.x86_64
  • gdm-3.22.3-13.el7_4.x86_64
  • glibc-2.17-196.el7_4.2.i686
  • glibc-2.17-196.el7_4.2.x86_64
  • glibc-common-2.17-196.el7_4.2.x86_64
  • gtk3-3.22.10-5.el7_4.x86_64
  • gtk3-immodule-xim-3.22.10-5.el7_4.x86_64
  • gtk-更新-圖示-快取-3.22.10-5.el7_4.x86_64
  • initscripts-9.49.39-1.el7_4.1.x86_64
  • iptables-1.4.21-18.3.el7_4.x86_64
  • iptables-服務-1.4.21-18.3.el7_4.x86_64
  • iwl1000-韌體-39.31.5.1-58.el7_4.noarch
  • iwl100-韌體-39.31.5.1-58.el7_4.noarch
  • iwl105-韌體-18.168.6.1-58.el7_4.noarch
  • iwl135-韌體-18.168.6.1-58.el7_4.noarch
  • iwl2000-韌體-18.168.6.1-58.el7_4.noarch
  • iwl2030-韌體-18.168.6.1-58.el7_4.noarch
  • iwl3160-韌體-22.0.7.0-58.el7_4.noarch
  • iwl3945-韌體-15.32.2.9-58.el7_4.noarch
  • iwl4965-韌體-228.61.2.24-58.el7_4.noarch
  • iwl5000-韌體-8.83.5.1_1-58.el7_4.noarch
  • iwl5150-韌體-8.24.2.2-58.el7_4.noarch
  • iwl6000-韌體-9.221.4.1-58.el7_4.noarch
  • iwl6000g2a-韌體-17.168.5.3-58.el7_4.noarch
  • iwl6000g2b-韌體-17.168.5.2-58.el7_4.noarch
  • iwl6050-韌體-41.28.5.1-58.el7_4.noarch
  • iwl7260-韌體-22.0.7.0-58.el7_4.noarch
  • java-1.7.0-openjdk-1.7.0.171-2.6.13.0.el7_4.x86_64
  • java-1.7.0-openjdk-headless-1.7.0.171-2.6.13.0.el7_4.x86_64
  • java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64
  • java-1.8.0-openjdk-headless-1.8.0.161-0.b14.el7_4.x86_64
  • 內核-3.10.0-693.21.1.el7.x86_64
  • 核心工具-3.10.0-693.21.1.el7.x86_64
  • 內核工具-libs-3.10.0-693.21.1.el7.x86_64
  • kmod-20-15.el7_4.7.x86_64
  • kmod-libs-20-15.el7_4.7.x86_64
  • kpartx-0.4.9-111.el7_4.2.x86_64
  • kpatch-0.4.0-2.el7_4.noarch
  • libblkid-2.23.2-43.el7_4.2.x86_64
  • libcurl-7.29.0-42.el7_4.1.x86_64
  • libdb-5.3.21-21.el7_4.i686
  • libdb-5.3.21-21.el7_4.x86_64
  • libdb-utils-5.3.21-21.el7_4.x86_64
  • libgcc-4.8.5-16.el7_4.2.i686
  • libgcc-4.8.5-16.el7_4.2.x86_64
  • libgomp-4.8.5-16.el7_4.2.x86_64
  • libgudev1-219-42.el7_4.10.x86_64
  • liblouis-2.5.2-12.el7_4.x86_64
  • liblouis-python-2.5.2-12.el7_4.noarch
  • libmount-2.23.2-43.el7_4.2.x86_64
  • libpciaccess-0.13.4-3.1.el7_4.x86_64
  • libreswan-3.20-5.el7_4.x86_64
  • libsmbclient-4.6.2-12.el7_4.x86_64
  • libsss_idmap-1.15.2-50.el7_4.11.x86_64
  • libsss_nss_idmap-1.15.2-50.el7_4.11.x86_64
  • libstdc++-4.8.5-16.el7_4.2.i686
  • libstdc++-4.8.5-16.el7_4.2.x86_64
  • libstoragemgmt-1.4.0-5.el7_4.x86_64
  • libstoragemgmt-python-1.4.0-5.el7_4.noarch
  • libstoragemgmt-python-clibs-1.4.0-5.el7_4.x86_64
  • libteam-1.25-6.el7_4.3.x86_64
  • libtevent-0.9.31-2.el7_4.x86_64
  • libuuid-2.23.2-43.el7_4.2.x86_64
  • libvirt-client-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-config-network-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-interface-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-network-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-nodedev-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-nwfilter-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-qemu-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-secret-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-storage-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-storage-core-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-storage-disk-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-storage-gluster-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-storage-iscsi-3.2.0-14.el7_4.9.x86_64
  • libvirt-守護程式-驅動程式-儲存-邏輯-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-storage-mpath-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-storage-rbd-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-driver-storage-scsi-3.2.0-14.el7_4.9.x86_64
  • libvirt-daemon-kvm-3.2.0-14.el7_4.9.x86_64
  • libvirt-libs-3.2.0-14.el7_4.9.x86_64
  • libwbclient-4.6.2-12.el7_4.x86_64
  • linux-firmware-20170606-58.gitc990aae.el7_4.noarch
  • microcode_ctl-2.1-22.5.el7_4.x86_64
  • 嘀咕-3.22.3-12.el7_4.x86_64
  • mysql-community-client-5.7.21-1.el7.x86_64
  • mysql-community-common-5.7.21-1.el7.x86_64
  • mysql-community-libs-5.7.21-1.el7.x86_64
  • mysql-community-libs-compat-5.7.21-1.el7.x86_64
  • mysql-community-server-5.7.21-1.el7.x86_64
  • 鸚鵡螺-3.22.3-4.el7_4.x86_64
  • 鸚鵡螺擴展-3.22.3-4.el7_4.x86_64
  • net-snmp-libs-5.7.2-28.el7_4.1.x86_64
  • nfs-utils-1.3.0-0.48.el7_4.2.x86_64
  • python-dmidecode-3.12.2-1.1.el7.x86_64
  • python-gobject-3.22.0-1.el7_4.1.x86_64
  • python-gobject-base-3.22.0-1.el7_4.1.x86_64
  • python-perf-3.10.0-693.21.1.el7.x86_64
  • qemu-img-1.5.3-141.el7_4.6.x86_64
  • qemu-kvm-1.5.3-141.el7_4.6.x86_64
  • qemu-kvm-common-1.5.3-141.el7_4.6.x86_64
  • rhnsd-5.0.13-7.3.el7_4.x86_64
  • samba-client-libs-4.6.2-12.el7_4.x86_64
  • samba-common-4.6.2-12.el7_4.noarch
  • samba-common-libs-4.6.2-12.el7_4.x86_64
  • samba-common-tools-4.6.2-12.el7_4.x86_64
  • samba-libs-4.6.2-12.el7_4.x86_64
  • selinux-policy-3.13.1-166.el7_4.9.noarch
  • selinux-policy-targeted-3.13.1-166.el7_4.9.noarch
  • sos-3.4-13.el7_4.noarch
  • 香料-glib-0.33-6.el7_4.1.x86_64
  • 香料-gtk3-0.33-6.el7_4.1.x86_64
  • sssd-客戶端-1.15.2-50.el7_4.11.x86_64
  • swiagent-1.8.0.551-835342.x86_64
  • systemd-219-42.el7_4.10.x86_64
  • systemd-libs-219-42.el7_4.10.i686
  • systemd-libs-219-42.el7_4.10.x86_64
  • systemd-python-219-42.el7_4.10.x86_64
  • systemd-sysv-219-42.el7_4.10.x86_64
  • systemtap-runtime-3.1-5.el7_4.x86_64
  • teamd-1.25-6.el7_4.3.x86_64
  • TigerVNC-許可證-1.8.0-2.el7_4.noarch
  • TigerVNC-伺服器-最小-1.8.0-2.el7_4.x86_64
  • tuned-2.8.0-5.el7_4.2.noarch
  • tzdata-2018c-1.el7.noarch
  • tzdata-java-2018c-1.el7.noarch
  • util-linux-2.23.2-43.el7_4.2.x86_64
  • webkitgtk4-2.14.7-3.el7.x86_64
  • webkitgtk4-jsc-2.14.7-3.el7.x86_64
  • webkitgtk4-插件-進程-gtk2-2.14.7-3.el7.x86_64
  • xorg-x11-server-common-1.19.3-11.el7_4.2.x86_64
  • xorg-x11-server-Xorg-1.19.3-11.el7_4.2.x86_64

答案1

drw-----根根等

這看起來不正確,/etc 應該是drwxr-xr-x這樣

# chmod 755 /etc

將解決這個問題,並可能解決更廣泛的問題。

相關內容