桥接模式
vim /etc/sysconfig/network-scripts/ifcfg-ens33
4 systemctl restart network
5 ifconfig
Yum搭建
cd /etc/yum.repos.d/
ls
rm -rf C*
vim yum.repo
mount /dev/sr0 /media/
Yum 安装httpd
yum -y install httpd
开启服务
systemctl start httpd
关闭防火墙
iptables -F
查看
netstat -anput | grep httpd
yum -y install php
systemctl restart httpd
下载包
wget -c http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
解压
tar -zxvf dokuwiki-stable.tgz
移动
mv dokuwiki-2018-04-22b /var/www/html/wiki/
给权限
chown -R apache:apache /var/www/html/wiki/
配置文件
vim /etc/httpd/conf/httpd.conf
<LocationMatch “/(data|conf|bin|inc)/”>
Order allow,deny
Deny from all
Satisfy All
ifconfig ens33
systemctl restart httpd
setenforce 0
iptables -F
.访问网页
去网页网址栏输ip/wiki/install.php注册用户密码