檢視CentOS上Apache位置,版本,停止,啟動
檢視Apache
是否被安裝:
[root@asg11 ~]# find / -name 'httpd'
/etc/sysconfig/httpd
/etc/httpd
/etc/logrotate.d/httpd
/etc/rc.d/init.d/httpd
/var/run/httpd
/var/log/httpd
/var/lock/subsys/httpd
/usr/sbin/httpd
/usr/lib64/httpd
由此確定Apache
被安裝的地方是/etc/httpd
檢視Apache
版本
首先進入httpd
所在目錄
[root@asg11 ~]# cd /etc/httpd
進而檢視版本
[root@asg11 httpd]# httpd -v
Server version: Apache/2.2.15 (Unix)
Server built: Aug 13 2013 17:29:28
停止httpd
[root@asg11 httpd]# service httpd stop
Stopping httpd: [ OK ]
啟動httpd
[root@asg11 httpd]# service httpd start
Starting httpd: [ OK ]
用瀏覽器訪問試試:
[root@asg11 httpd]#
Apache
的重要配置檔案httpd.conf
的位置在/etc/httpd/conf/httpd.conf
[root@asg11 conf]# pwd
/etc/httpd/conf
[root@asg11 conf]# ls
httpd.conf magic
[root@asg11 conf]#
相關文章
- centos檢視版本資訊CentOS
- linux停止和檢視啟動服務的命令Linux
- centos 檢視USB介面的版本CentOS
- Ubuntu下啟動、停止、重啟MySQL,檢視錯誤日誌命令大全UbuntuMySql
- CentOS8檢視系統版本CentOS
- 檢視apache、linux、kernel、nginx等版本ApacheLinuxNginx
- centos設定Apache開機啟動CentOSApache
- 雲伺服器檢視CentOS版本方法伺服器CentOS
- 檢視JDBC驅動版本JDBC
- CentOS下檢視系統版本的4種方法CentOS
- oracle 啟動停止Oracle
- 檢視oracle啟動方式Oracle
- 強大的CSS:scroll-snap滾動事件停止及元素位置檢測CSS事件
- redis的安裝和啟動和檢測和停止Redis
- CentOS 下 Apache + Subversion 實現版本控制CentOSApache
- CentOS8中開機啟動檢視管理的命令chkconfigCentOS
- centos安裝php後apache不能啟動怎麼辦CentOSPHPApache
- nginx啟動,停止命令Nginx
- PostgreSQL:啟動與停止SQL
- 實驗二:檢視centos的版本號及版本號所代表的含義CentOS
- 試驗二:檢視centos的版本號以及版本號所代表的意義CentOS
- 檢視 .net 版本
- Mysql版本檢視MySql
- 檢視AIX版本AI
- 檢視EBS版本
- centos 檢視硬碟命令CentOS硬碟
- Mac上檢視GIF動圖方法Mac
- 啟動和停止任務
- 檢視 Oracle 是用spfile 啟動還是 pfile 啟動Oracle
- Hadoop CDH版本安裝和啟動(CentOS7)HadoopCentOS
- ASP.NET Core 5.0 MVC中的檢視分類——佈局檢視、啟動檢視、具體檢視、分部檢視ASP.NETMVC
- Python版本檢視Python
- 檢視python版本Python
- Websphere版本檢視(UNIX)Web
- 檢視 yum 安裝的 PHP 位置PHP
- navicat檢視mysql安裝位置命令MySql
- 如何檢視 Apache 模組是否正常Apache
- Apache 的資訊檢視模組(轉)Apache