Apache2的是作为一个openSUSE的软件包,因此,我们可以用下面命令安装它:
yast2 -i apache2
现在配置系统在引导时启动Apache
systemctl enable apache2.service
并启动Apache2
systemctl start apache2.service
现在,在您的浏览器输入http://192.168.0.100,你应该看到Apache2的首页页(不用担心403错误,这种情况,因为有没有索引文件。
Apache的默认文档根目录是在openSUSE上的/srv/www/htdocs/目录 ,配置文件是/etc/apache2/httpd.conf。配置存储在的/etc/apache2/conf.d /目录。