美文网首页
apach ubuntu 命令安装apache2

apach ubuntu 命令安装apache2

作者: 郝赫 | 来源:发表于2018-01-04 16:12 被阅读21次

检测apache2是否安装
1.执行命令

dpkg -l apache2
如图1-1:表示apache2已经安装
如图1-2:表四apache2未安装

查看apache2安装版本命令和安装时间: apache2 -v

1-1


1-2

方法一:使用开发包的打包服务——apt-get

安装apache,在命令行终端中输入一下命令:

$ sudo apt-get install apache2

安装完成后,重启apache服务,在命令行终端中输入一下命令:

$ sudo /etc/init.d/apache2 restart

相关文章

网友评论

      本文标题:apach ubuntu 命令安装apache2

      本文链接:https://www.haomeiwen.com/subject/cehknxtx.html