407-2-安装软件

1.编写httpd.yml文件,通过yum安装httpd,通过service启动httpd并载入启动项,通过template复制index.html.j2到/etc/httpd/conf.d/vhost.conf,通过copy创建内容为test的/var/www/html/index.html文件,通过lineinfile将/var/www/html/index.html中的test替换为主机名,
相关文章
相关标签/搜索