James's BLOG
MariaDB Max connect
›
參考 https://pjstrnad.com/mariadb-raise-number-of-connections/ The issue is that you can’t have more max_connections than open_files_l...
mysql binlog too large
›
檢查硬碟空間 df -h 檢查資料夾大小 du -sh /home/james/* MySQL log 太大 設定 /etc/my.cnf 只保留七天的 Log [mysqld] expire-logs-days=7 重啟 mysql systemc...
MariaDB max_connections, table_open_cache stuck
›
copy my-hugh.cnf to /etc/my.cnf.d/ editing /etc/sysctl.conf fs.file-max = 2459688 editing /etc/security/limits.conf mysql ...
GeoIP Update
›
系統 CentOS https://github.com/maxmind/geoipupdate 先到官方 git clone $ git clone https://github.com/maxmind/geoipupdate $ cd geoipupdate ...
Clickjacking 防範
›
NGINX 設定 add_header X-Frame-Options "SAMEORIGIN"; 參考文章 https://developer.mozilla.org/zh-TW/docs/Web/HTTP/X-Frame-Options htt...
SELinux 影響 ssh with key login
›
如果沒有關閉 SELinux ssh 使用 rsa 登入時會遇到錯誤, 上傳 key 後時要記得更新資料夾權限 restorecon -Rv /folder 就可以正常使用了
‹
›
首頁
查看網路版