# 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等連接工具的編碼即可