Apache2.4.33安裝無systemctl/service status/state顯示

netstat -tlnp
看端口 httpd的端口是80,如果80端口是監聽狀態,則說明 http服務已經開啓

ps -ef|grep http或者
ps aux|grep http
看httpd的進程

編譯安裝的systemctl status httpd 無法查看狀態,如果是yum安裝的可以

我的httpd.conf並不在安裝目錄下,是由於在解壓後make前的配置信息
./configure -prefix=/usr/local/http2 \
--enable-moudles=all \
--enable-mods-shared=all \
--enable-so \
--sysconfdir=/etc/httpd \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util \
--enable-ssl \
--enable-cgi \
--enable-rewrite \
--enable-zlib \
--with-pcre \
--enable-module=most \
--enable-mpms-shared=all \
--enable-deflate \
--enable-cgid

可以etc目錄下用find | grep httpd 進入啓用端口

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章