朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

centos7下安装apache服务器httpd的yum方式安装

Apache在Linux系统中,其实叫“httpd”,可以使用yum来安装。

1、查看httpd包是否可用:

# yum list | grep httpd

2、安装Apache

# yum install httpd

3、配置ServerName

# vi /etc/httpd/conf/httpd.conf

如果没有域名,则:ServerName localhost:80

4、启动

# httpd

5、停止

# httpd -k stop

6、设置开机自动启动:

chkconfig httpd on

7、安装目录介绍
Apache默认将网站的根目录指向/var/www/html 目录
默认的主配置文件是/etc/httpd/conf/httpd.conf
配置存储在的/etc/httpd/conf.d/目录

赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » centos7下安装apache服务器httpd的yum方式安装

评论 23

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #30

    I am sure this post has touched all the internet viewers, its really
    really fastidious paragraph on building up new weblog.

  2. #29

    You’ve made some really good points there. I checked on the web for
    more info about the issue and found most people will go
    along with your views on this web site.

  3. #28

    you are in point of fact a good webmaster.
    The web site loading velocity is amazing. It kind of feels that you’re doing
    any distinctive trick. In addition, The contents are masterwork.
    you’ve performed a wonderful process in this topic!

  4. #27

    I like the valuable information you provide in your
    articles. I will bookmark your weblog and check again here frequently.
    I’m quite sure I will learn many new stuff right here!
    Good luck for the next!

  5. #26

    I do not know if it’s just me or if everybody else encountering
    problems with your blog. It seems like some of
    the text within your content are running off the screen. Can somebody else please comment and let
    me know if this is happening to them as well? This may be a
    problem with my internet browser because I’ve
    had this happen before. Kudos

    My homepage – special

  6. #25

    I was recommended this web site by my cousin. I am no longer certain whether this
    submit is written by means of him as nobody else know such
    targeted about my trouble. You are incredible! Thanks!

    tinyurl.com1周前 (08-10)回复
  7. #24

    Excellent post. I definitely love this site. Stick with it!

  8. #23

    Howdy! Do you know if they make any plugins
    to assist with Search Engine Optimization? I’m trying to get my blog to rank for
    some targeted keywords but I’m not seeing very good gains.

    If you know of any please share. Thank you!