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

2016年11月18日 星期五

CentOS 7 改回iptables

CentOS 7 後防火牆改為 firewalld 類似 router 設定以區域為概念 , 在圖形介面上使用是很方便 但 iptables 還是用習慣了 , 一份文檔設定可以直接套用比較方便 改回 iptables 方法 : 1. 關閉 firewalld systemctl ...
Read More

CentOS 7 基本設定

1.關閉Selinux 將Selinux 設為警示但不強制 vi /etc/sysconfig/selinux SELINUX=permissive 2.設定網路介面卡 dmesg | grep eth   查詢網卡有沒有被系統抓到 有GUI可以先使用NetworkManager...
Read More

2016年11月17日 星期四

常用指令

useradd username -s /sbin/nologin passwd vi /etc/aliases postalias hash:/etc/aliases xfs_quota -x -c "limit -u bsoft=900M bhard=1G user...
Read More

2016年11月8日 星期二

win10 連線網路磁碟機相關問題

連出去的問題: win10使用Windows Live帳戶登入後,存取網路芳鄰(網路磁碟機)因為名稱不同(本機登入與microsoft帳號不同) 造成無法認證連線,需要做一些調整: 1.控制台->使用者帳號->管理你的憑證->windows憑證->新增wi...
Read More

2016年3月2日 星期三

以postfix設定黑名單方式擋信

  1.  vi /etc/postfix/main.cf  增加以下字句 smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access 2. vi /etc/postfix/sen...
Read More

Post Top Ad

Your Ad Spot