centos 7 安裝記錄
- service 改成 systemctl
- systemctl 列出所有 service
- systemctl status servie 列出 service 狀況
- systemctl stop service 停止
- systemctl start service 啟動
- systemctl enable service 開機啟動
- systemctl disable service 取消啟
- 檔案系統 ext4 改成 xfs
- lsblk -f 或 blkid 先找到磁碟,再用 parted /dev/xxx print 來找出內部的分割表類型,之後才用 gdisk 或 fdisk 來操作系統, mkfs.xfs 或 mkfs.ext4 格式化
- quota 設定改成 xfs_quota , xfs_quota 不能設定在 / 根目錄
- /usr/sbin/xfs_quota -x -c "limit bsoft=1000M bhard=1024M phpinii" /mnt2
xfs_quota -x -c "print"
xfs_quota -x -c "report -b" /home
- apache 2.4 設定必須加入 Require all granted 才能使用該目錄,否則會有 authz_core:error , client denied by server configuration: 在 error_log 中顯示
- <Directory "/home/*/*/www">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
Require all granted
</Directory>
在個人目錄的 userdir.conf 中個人目錄絕對路徑要正確,用 * 表示所有目錄 , 如果有二層,就必須有二個 * ,例如 /home/office/piggy/www
- <Directory "/home/*/*/www">
- 在 samba 用 nmb 時無法啟用,原來是 smb.conf 中 interfaces = lo eno1 網卡介面名稱要對,內定是 eth0 要記得改
- 在用 freeradius 有檔案屬性錯誤,原來是 /usr/lib/systemd/system/radiusd.service 所有檔案只能 644
- 若有用 firewall 指令
- firewall-cmd --zone=public --add-port=995/tcp --permanent
firewall-cmd --reload
firewall-cmd --list-all
其實我覺得直接改 /etc/firewalld/zones/public.xml 再 firewall-cmd --reload 比較簡
- firewall-cmd --zone=public --add-port=995/tcp --permanent
- 在 dovecot 的 conf.d/10-mail.conf 多了一個 first_valid_uid = 500 內定是 1000 ,也就是 uid 要大於等於 500 的 user ,才可以使用 imap 或 pop3 的功能,否則會在 /var/log/maillog 產生 not permitted (see first_valid_uid in config file)的訊息
- pop3收信,沒有 ssl失敗,將 conf.d/10-ssl.conf 下的 ssl = required 改成 ssl = yes
- 變身使用者:先轉成 root 身份,再用 su -l 使用者 , 就不須要使用者密碼了
迴響
centos 7 安裝記錄 | 豬窩 | 10
I love your blog.. very nice colors & theme. Did you make this website yourself
or did you hire someone to do it for you? Plz reply
as I'm looking to construct my own blog and would like to find out where u got this from.
thanks
centos 7 安裝記錄 | 豬窩 | 10
You made some really good points there. I looked on the internet for more information about the issue and
found most individuals will go along with your views on this
website.
centos 7 安裝記錄 | 豬窩 | 10
Link exchange is nothing else but it is simply placing the other person's blog link on your page at
suitable place and other person will also do same in support of you.
centos 7 安裝記錄 | 豬窩 | 10
Fastidious replies in return of this matter with firm arguments and describing the whole thing on the topic of that.
centos 7 安裝記錄 | 豬窩 | 10
hello there and thank you for your information – I've definitely picked up
something new from right here. I did however expertise several
technical issues using this website, as I experienced to reload the website lots of times previous to I could
get it to load correctly. I had been wondering if your
web hosting is OK? Not that I'm complaining, but sluggish
loading instances times will sometimes affect your placement in google and could damage your quality score if ads and marketing with Adwords.
Anyway I'm adding this RSS to my e-mail and can look out for a
lot more of your respective fascinating content. Ensure that you update this again very soon.