# tar -zxvf safedog_linux64.tar.gz
[root@localhost safedog_an_linux64_2.8.21207]# ./install.py Selinux is enabled in /etc/selinux/config, can not install safedog!Please set disabled to SELINUX Installation aborted!
查看 SELinux status
[root@localhost safedog_an_linux64_2.8.21207]# /usr/sbin/sestatus -v
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: permissive
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
临时关闭
# setenforce 0
若临时关闭不起作用,则永久关闭吧
# vi /etc/selinux/config
将SELINUX=enforcing改为:
SELINUX=disabled
安装完成
[root@localhost safedog_an_linux64_2.8.21207]# ./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 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.21207 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!
绑定服务云账号
# sdcloud -u phoneNumber Enter password:
进入操作页面
sdui
service safedog status 查看安全狗服务; service safedog start 启动安全狗服务; service safedog stop 停止安全狗服务; sdstart sdstart 重启安全狗服务。
可以连续按F5或CTRL+L来切换语言
如果出现乱码的情况,修改ssh等连接工具的编码即可