12月 2016 - 工作雜記

工作雜記

My working blogger,In my daily work log, I meticulously record all the matters and processes I encounter during the day. From the task planning that begins in the morning and the discussions and collaborations with colleagues, to the tools, methods, and processes used in the actual execution of the work, I organize and write them down one by one. Problems encountered during the process, the directions of thought, and the solutions finally found are also clearly recorded in writing

工作雜記

搜尋此網誌

標籤

2016年12月19日 星期一

CentOS 7 AWstats 安裝

yum install awstats 設定檔在 /etc/awstats /內 預設範本名稱為awstats.model.conf 預設設定檔為awstats. name .conf ,(name為自定義變數,自行更改之,底下指令一并套用) vi /etc/awstats/aw...
Read More

2016年12月15日 星期四

CentOs 7 rkhunter安裝

yum install rkhunter 更新: rkhunter --update 產生相關檔案: rkhunter --propupd 掃描: rkhunter --checkall --sk  log檔在/var/log/rkhunter/rkhunter.log 找出有問...
Read More

CentOs 7 XFS Quota 實作

  前置作業: 一般佔大容量大致為使用者的mail 所以要把mail資料移到/home來比較方便處理 postfix預設的home mailbox 在/var/mail/ 修改/etc/postfix/main.cf home_mailbox = Maildir/ (改為使用者...
Read More

2016年12月14日 星期三

CentOs 7 ntopng 安裝

以yum 安裝: cd /etc/yum.repos.d/ wget http://packages.ntop.org/centos-stable/ntop.repo -O ntop.repo yum clean all yum update yum install pfring...
Read More

CentOs 7 RoundCube 安裝

前置作業: 先使用phpmyadmin新增資料庫與使用者(也可用mysql指令去下) 瀏灠器開啟http:// (your IP) /phpmyadmin 新增一個資料庫 取名: (database name) 編碼選擇 utf8_unicode_ci 新增一個使用者 取名: (...
Read More

2016年12月12日 星期一

CentOS 7 資料庫相關安裝

MariaDB 安裝 安裝: yum -y install mariadb mariadb-devel mariadb-client mariadb-server systemctl enable mariadb systemctl restart mariadb 初始化安裝 m...
Read More

CentOs 7 vsftpd 安裝

安裝vsftp程式 yum -y install vsftpd 修改設定檔 vi /etc/vsftpd/vsftpd.conf #限制匿名登入 anonymous_enable=NO #限制使用者無法跳出家目錄 chroot_list_enable=YES 啟用鎖定家目錄 c...
Read More

2016年12月9日 星期五

CentOS 7 MailScanner安裝

前置相關: 安裝前應將掃毒軟體和spamassassin及垃圾信相關軟體都裝好 postfix與dovecot也測過寄收發都沒問題了,MailScanner才在最後安裝 先安裝必要套件 yum install \ perl-Archive-Zip \ perl-DBI \ per...
Read More

CentOS 7 clamav與spam

先裝好epel yum install -y clamav* /usr/bin/freshclam 若出現 ERROR: Please edit the example config file /etc/freshclam.conf vi /etc/freshclam.conf ...
Read More

2016年12月7日 星期三

CentOS 7 fail2ban安裝

安裝前先弄好epel-release yum -y install fail2ban 主要設定檔: vim /etc/fail2ban/fail2ban.conf 日誌級別 loglevel = 3 確認log輸出檔 logtarget = /var/log/fail2ban.l...
Read More

CentOS 7 Pofix & Dovecot

postfix: 設定檔 /etc/postfix/main.cf myhostname = (完整FQDN hostname) mydomain = (網域domain name) myorigin = $mydomain inet_interfaces = all inet_...
Read More

2016年12月6日 星期二

CentOS 7 DNS安裝

1.預設安裝應有bind-chroot,若無先安裝 yum -y install bind bind-chroot 2.將各設定檔放入應有位置,網域必需有正解檔,有架mail server必須有外網反解檔,其他可有可無 bind設定檔named.conf 在 /etc dns網域...
Read More

Post Top Ad

Your Ad Spot