• <span id="ycodp"></span>
    <span id="ycodp"><small id="ycodp"></small></span>
    1. <label id="ycodp"></label>
      <rt id="ycodp"><tr id="ycodp"><strike id="ycodp"></strike></tr></rt>
      <i id="ycodp"><strong id="ycodp"><ul id="ycodp"></ul></strong></i>
    2. 幫助中心

      這里有最新的使用文檔和教程

      < 返回

      CentOS 如何安裝服務器安全狗

      2023-06-14 18:11 作者:31IDC 閱讀量:2172 所屬分類:Linux系統

      CentOS系統 如何安裝安全狗,Linux如何安裝安全狗

      廈門服云信息科技有限公司(品牌名:安全狗)成立于2013年,致力于提供云安全領域相關產品、服務及解決方案,是國內最早引入云工作負載安全(CWPP)概念,并成功構建相應產品線的專業云安全廠商。目前擁有數十項產品專利及著作權證書,產品能力獲得信通院、公安三所、Gartner、CSA、IDC等多個國內外權威機構的認可。

      一、下載安全狗

      法一、64位操作系統下載命令:

       

      wget http://down.safedog.cn/safedog_linux64.tar.gz

      1

      32位操作系統下載命令:

       

      wget http://down.safedog.cn/safedog_linux32.tar.gz

      1

      法二、官網下載后上傳到服務器

       

      服務器安全狗

       

      https://www.safedog.cn/install_desc_server.html

       

      二、解壓

      [root@localhost wu]# tar xzvf safedog_linux64.tar.gz

       

      三、安裝

      ls命令查看解壓出來的文件夾名稱

       

      [root@localhost wu]#  ls

      safedog_an_linux64_2.8.32947  safedog_linux64.tar.gz

      [root@localhost wu]# cd safedog_an_linux64_2.8.32947/

      [root@localhost safedog_an_linux64_2.8.32947]# chmod +x *.py

      [root@localhost safedog_an_linux64_2.8.32947]# ./install.py

      Selinux is running, can not install safedog!Please run setenforce 0 to disable

      Installation aborted!

       

      報錯

      臨時關閉selinux:

       

      [root@localhost safedog_an_linux64_2.8.32947]# setenforce 0

      [root@localhost safedog_an_linux64_2.8.32947]# ./install.py 

      Selinux is enabled in /etc/selinux/config, can not install safedog!Please set disabled to SELINUX

      Installation aborted!

       

      臨時關閉無效,修改配置文件:

       

      [root@localhost safedog_an_linux64_2.8.32947]# vim /etc/selinux/config

       

      SELINUX=enforcing

      改為

      SELINUX=disabled

       

      重新安裝:

       

      [root@localhost safedog_an_linux64_2.8.32947]# ./install.py

      extracting files ...

      create directory:'/etc/safedog/' failed!

      installing exiting!

      step 1/2, start install common lib                                                                [ok] 

      step 2/2, start Install Server Defense Module                                                      

        step 2.1, checking os release version...                                                        [ok] 

      sh: ./dependpkg/bin/udinstall: /etc/safedog/libs/sdcc/ld-linux.so.2: bad ELF interpreter: No such file or directory

        step 2.2, installing file...                                                                    [error] 

      command:'cp -a -f -r ./dependpkg/lib/libsafedog/* /etc/safedog/libs/safedog/' failed!

      cp: target ‘/etc/safedog/libs/safedog/’ is not a directory

       

      Installation aborted!

       

      報錯,無權限

       

      [root@localhost safedog_an_linux64_2.8.32947]# mkdir /etc/safedog

      mkdir: cannot create directory ‘/etc/safedog’: Permission denied

       

      查看文件屬性,無異常

       

      [root@localhost safedog_an_linux64_2.8.32947]# ll /

      total 32

      ...

      drwxr-xr-x. 155 root root 12288 Jan 29 17:12 etc

      ...

       

      lsattr查看屬性

      lsattr參考:

       

      https://blog.csdn.net/sugarCYF/article/details/108034987

       

      [root@localhost safedog_an_linux64_2.8.32947]# lsattr /

      ---------------- /boot

      ----i----------- /etc

      ....

       

      chattr 去除i屬性

       

      [root@localhost safedog_an_linux64_2.8.32947]# chattr -i /etc

      [root@localhost safedog_an_linux64_2.8.32947]# lsattr /

      ---------------- /etc

       

      重新安裝

       

      [root@localhost safedog_an_linux64_2.8.32947]# ./install.py

      extracting files ...

      step 1/2, start install common lib                                                                [ok] 

      step 2/2, 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.32947 

      install safedog completely

      Installation is complete!

      安裝成功,sdui進入操作頁面

       

      [root@localhost safedog_an_linux64_2.8.32947]# sdui

      安全狗成功安裝。

       

      按實際需求恢復文件屬性、啟動selinux

      [root@localhost safedog_an_linux64_2.8.32947]# chattr +i /etc

      [root@localhost safedog_an_linux64_2.8.32947]# vim /etc/selinux/config

       

      SELINUX=disabled

      改回

      SELINUX=enforcing

       

      以下為官房說明,未實際操作(登陸后官網個人中心查看服務器)

      執行以下命令加入服云,告別Linux傳統字符界面,體驗更多服云功能(fuyun.safedog.cn):

      sdcloud -u 服云帳號

      加入服云,云端對服務器進行安全管理

       

      四、官方用戶手冊

      服務器安全狗 Linux 版 V2.5.pdf

       

      五、卸載安全狗

      進入安全狗目錄,運行uninstall.py

       

      [root@localhost wu]# cd safedog_an_linux64_2.8.32947/

      [root@localhost safedog_an_linux64_2.8.32947]# ./uninstall.py 

      Would you like to backup safedog logs?[y/n](default:y):y

      Collecting setup information                                                                      [ok] 

      Uninstall Server Defense Module                                                                   [ok] 

      Uninstall Server Defense Module Compeletely

      Apache Defense Module is not installed

      Nginx Defense Module is not installed

      Uninstall Common Module                                                                           [ok] 

      Uninstall completely!

       

       

      31IDC - 12 年深耕海外 IDC 高端資源

      主站蜘蛛池模板: 色噜噜狠狠狠色综合久| 国产成人综合久久精品| 狠狠色噜噜狠狠狠狠色综合久AV| 亚洲综合av一区二区三区不卡| 国产成人综合久久综合| 色婷婷综合中文久久一本| 色综合久久久久综合99| 日韩字幕一中文在线综合| 婷婷综合另类小说色区| 久久亚洲精品高潮综合色a片| 色综合久久88色综合天天 | 久久亚洲高清综合| 综合在线免费视频| 综合在线视频精品专区| 久久综合亚洲色hezyo| 偷自拍视频区综合视频区| 九九综合VA免费看| 精品久久久久久亚洲综合网| 99久久国产综合精品swag| 五月婷婷亚洲综合| 国产成人+综合亚洲+天堂| 激情五月婷婷综合| 亚洲综合男人的天堂色婷婷| 亚洲五月激情综合图片区| 亚洲五月综合缴情在线观看| 丁香六月激情综合| 亚洲国产免费综合| 国产综合精品一区二区| 国产成人综合日韩精品婷婷九月| 亚洲 欧洲 日韩 综合在线| 久久婷婷国产综合精品| 99久久国产综合精品swag | 色综合天天综合网站中国| 亚洲欧洲国产综合| 狠狠色噜噜狠狠狠狠狠色综合久久 | 一本久到久久亚洲综合| 三级韩国一区久久二区综合| 日韩字幕一中文在线综合| 狠狠色丁香婷婷综合| 久久婷婷五月综合97色| 一日本道伊人久久综合影|