GNU/Linux >> Belajar Linux >  >> Linux

httpd:apr_sockaddr_info_get() gagal untuk rhel7

Sistem Operasi

Red Hat Enterprise Linux Server rilis 7.0 (Maipo)

Deskripsi

Kesalahan:

httpd: apr_sockaddr_info_get() failed for rhel7

muncul saat memulai daemon server web Apache httpd . Ini dapat dilihat ketika menjalankan perintah status layanan httpd:

# service httpd status
Redirecting to /bin/systemctl status  httpd.service
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
   Active: active (running) since Thu 2014-09-04 17:28:52 WST; 1min 25s ago
 Main PID: 2303 (httpd)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/httpd.service
           ├─2303 /usr/sbin/httpd -DFOREGROUND
           ├─2304 /usr/sbin/httpd -DFOREGROUND
           ├─2305 /usr/sbin/httpd -DFOREGROUND
           ├─2306 /usr/sbin/httpd -DFOREGROUND
           ├─2307 /usr/sbin/httpd -DFOREGROUND
           └─2308 /usr/sbin/httpd -DFOREGROUND

Sep 04 17:28:32 rhel7 systemd[1]: Starting The Apache HTTP Server...
Sep 04 17:28:47 rhel7 httpd[2303]: AH00557: httpd: apr_sockaddr_info_get() failed for rhel7

Solusi:

Dalam hal ini rhel7 adalah nama host sebenarnya untuk sistem ini. Untuk memperbaiki pesan kesalahan di atas :

# echo 'ServerName 127.0.0.1' >> /etc/httpd/conf/httpd.conf

dan restart apache webserver daemon httpd Anda untuk menerapkan perubahan:

# service httpd restart

Linux
  1. Tutorial Perintah layanan Linux untuk Pemula (dengan Contoh)

  2. Peretasan baris perintah riwayat Linux favorit sysadmin

  3. Cara memperbaiki "Gagal menyinkronkan cache untuk repo appstream"

  1. Bagaimana Cara Menulis Script Startup Untuk Systemd?

  2. Centos – Gagal Memulai Server Apache Http – Httpd.service Gagal?

  3. Kepatuhan GDPR untuk Penyedia Layanan Terkelola Global

  1. Tindakan Instal untuk produk MySQL Server 5.7.19 gagal.

  2. Pekerjaan docker untuk docker.service gagal karena proses kontrol keluar dengan kode kesalahan

  3. Cara membatasi memori untuk layanan yang dikelola oleh systemd