前言:
现在我们对“过安全狗php”大约比较看重,看官们都想要了解一些“过安全狗php”的相关内容。那么小编也在网上汇集了一些有关“过安全狗php””的相关知识,希望朋友们能喜欢,姐妹们一起来了解一下吧!今天给大家分享安全狗的安装,希望能帮到大家。直接进入主题
实验环境:RHEL7.4
官网地址:
[root@Yang ~]# vim /etc/selinux/config --修改如下
SELINUX=disabled
[root@Yang ~]# reboot ---重启生效
[root@Yang ~]# iptables -F
[root@Yang ~]# wget ---下载软件包
[root@Yang ~]# yum install httpd php* -y ---快速安装LAP
[root@Yang ~]# tar -xf safedog_linux64.tar.gz
[root@Yang ~]# cd safedog_an_linux64_2.8.20384/
[root@Yang safedog_an_linux64_2.8.20384]# yum install mlocate psmisc lsof -y
[root@Yang safedog_an_linux64_2.8.20384]# ./install.py
extracting files ...
Warning: Web defense module will restart web process during installation!!:
Web defense module select: 1.apache 2.nginx . Input(Ctrl-C to skip web defense module installation): 1 ---选择1
step 1/3, start install common lib [ok]
step 2/3, start Install Server Defense Module
step 2.1, checking os release version... [ok]
step 2.2, installing file... [ok]
step 2.3, start service... [ok]
step 2.4, save safedog install info...
Tips:
(1)safedog install directory: /etc/safedog
(2)install safedog version: 2.8.20384
install safedog completely
step 3/3, start install Apache Defense Module..
step 3.1, start install Apache Defend Module...
step 3.2, copy libraries [ok]
step 3.3, copy bin [ok]
step 3.4, Install apache defense module succeed.. [ok]
step 3.5, restart the apache server..send command to server ok.
[ok]
Tips:
(1)If you want to change the configuration of apache defense module, please modify the files in /etc/safedog/apache/conf;
(2)If you want to check apache defense module log, please use command: sdalog;
(3)If apache defense module is failed to use, you can try to restart Apache service.
Installation is complete!
此时安装成功
开启网站漏洞主动防护
[root@Yang ~]# vim /etc/safedog/apache/conf/WPCDefSql.conf
ChkSqlAttackStatus=1 ---默认是1 参数说明是否开启防注入功能:1 开启,0 关闭
开启网马防护
[root@Yang ~]# vim /etc/safedog/apache/conf/WPCDefTrojan.conf
ChkTrojan=1 --开启防护
ChkWTBrowsyFile=1 ---是否浏览防御功能:1 为开启
网站资源防盗链
[root@Yang ~]# vim /etc/safedog/apache/conf/WPCLinkGate.conf
ChkLinkGate=1 ---开启防盗链
常用关于safedog的命令
service safedog status 查看安全狗服务;
service safedog start 启动安全狗服务;
service safedog stop 停止安全狗服务
sdstart重启安全狗服务。
今天给大家就分享到这里,更多的内容请参考官网提供的详细文档,相关文档的参考文档我都已经准备好了。如果你需要,请私信softdog获取更多内容,当然你也可以从官网进行下载相关资料,谢谢大家
标签: #过安全狗php #服务器安全狗 #安全狗apache服务找不到