You are on page 1of 3

事件:kernel update debug

沒用
uninstall intel-microcode
sudo apt-get purge intel-microcode

sudo nano /etc/default/grub


GRUB_CMDLINE_LINUX_DEFAULT="dis_ucode_ldr quiet splash"
sudo update-grub

事件:資料庫調整
資料庫語法
查看目前 TABLE 的 LOCK 狀況
SHOW OPEN TABLES;
查看 INNODB 的 LOCK 相關統計
show global status like 'Innodb_row%';
解除 TABLE LOCK
UNLOCK TABLES;

TABLE LOCK 查詢
https://www.51cto.com/article/708458.html

phpmyadmin 的 MyISAM 改 Innodb


https://www.wbolt.com/convert-myisam-to-innodb.html

innodb 調整說明
https://cloud.tencent.com/developer/article/2062688

innodb_flush_log_at_trx_commit 和 sync_binlog 参数详解


https://support.huaweicloud.com/bestpractice-rds/rds_02_0010.html

事件:查詢關鍵字
ubuntu noatime
ubuntu jbd2 硬碟
mysql InnoDB: page_cleaner: 1000ms intended loop took
jbd2/sda1-8
iostat

事件:正式機硬碟速度發現
1.5/3 備份檔加密到早上還沒處理好
2.當晚 7:54 手動下指令打包到 12:28 才好
3.SFTP 下載速度受到影響
4.NFS 傳輸是否有加密?(校內傳輸不用?)
試著切割檔案大小,不要整包 14G 這樣

事件:搬移舊檔案的語法查詢
FIND 指令
https://manpages.ubuntu.com/manpages/bionic/zh_TW/man1/find.1.html
https://wiki.freedomstu.com/books/linux-%E7%B3%BB%E7%B5%B1%E8%A8%98%E9%8C%84/page/
linux-find
https://www.ewdna.com/2012/04/linux-script.html
比較檔案時間
https://superuser.com/questions/138270/how-to-compare-file-timestamps-in-bash
https://blog.csdn.net/Erice_s/article/details/110672898
擷取副檔名
https://ephrain.net/linux-%E4%BD%BF%E7%94%A8-shell-%E6%88%AA%E5%8F%96%E6%AA
%94%E6%A1%88%E7%9A%84%E6%AA%94%E5%90%8D%E8%88%87%E5%89%AF%E6%AA%94%E5%90%8D/
for f in `find ./ -type f`; do echo ${f##*124517}; done
only folder
https://askubuntu.com/questions/365877/copy-only-folders-not-files
find -type d -links 2 -exec mkdir -p "/path/to/backup/{}" \;

事件:GCB 中 VAR 資料夾單獨掛載分割區


https://blog.csdn.net/Neil4/article/details/116014517
https://blog.csdn.net/xzl9811wl/article/details/108189839

事件:SWAP 使用大量空間,但 RAM 使用量低


https://blog.csdn.net/xiao_yi_xiao/article/details/124044446
https://blog.51cto.com/jschu/2121241
查看 SWAP 被誰佔用
https://blog.longwin.com.tw/2017/02/linux-find-use-swap-process-2017/

事件:資料庫 select 的 ORDER BY 必須要再 SELECT LIST 中


https://stackoverflow.com/questions/36829911/how-to-resolve-order-by-clause-is-not-
in-select-list-caused-mysql-5-7-with-sel

事件:SHELL CP 時判斷檔案是否存在
https://blog.csdn.net/u010826341/article/details/107121691
https://www.ltsplus.com/linux/shell-script-check-file-directory-exists

事件:資料庫升級 8.0 差異
https://support.huaweicloud.com/drs_faq/drs_04_0030.html

事件:資料庫 8.0 性能差


https://wgzhao.github.io/notes/database/why-mysql8-slower-than-mysql57/#_6

事件:一直出現
Jun 1 16:53:16 epa-05-2023 multipathd[807]: sda: add missing path
Jun 1 16:53:16 epa-05-2023 multipathd[807]: sda: failed to get udev uid: Invalid
argument
Jun 1 16:53:16 epa-05-2023 multipathd[807]: sda: failed to get sysfs uid: Invalid
argument
Jun 1 16:53:16 epa-05-2023 multipathd[807]: sda: failed to get sgio uid: No such
file or directory
https://askubuntu.com/questions/1242731/ubuntu-20-04-multipath-configuration

事件:使用 usermod 新增使用者的群組時出現 configuration error - unknown item 'FAIL_DELAY'


(notify administrator)
GCB 要求的東西
https://www.linuxquestions.org/questions/debian-26/unknown-item-%27fail_delay%27-
etc-after-login-or-su-420049/
P.S.
Here's the solution if someone should need it:
The problem is caused by upgrading package login.
apt-get for some reason doesn't remove FAIL_DELAY etc. from /etc/login.defs
eventhough they are not needed anymore (and may not exist in that file). If you
manually comment out those lines, everything should work.

事件:更改資料庫字元 UTF8MB3 轉 UTF8MB4


PHPMYADMIN 可以直接從資料庫操作往下更新
https://developer.aliyun.com/article/269217
https://cloud.tencent.com/developer/article/1642652

事件:IPTABLE BAN MAC


不能加在第一行,會導致全部 DROP
https://zhidao.baidu.com/question/747569344878313292.html

事件:rsync -av src dest 對上傳檔案進行差異複製


https://serverfault.com/questions/380223/cp-command-ignore-unchanged-files

事件:使用 performance_schema 查看資料庫狀態


https://www.cnblogs.com/Courage129/p/14188422.html

事件:轉編碼跟 innodb 後,TABLE 的 COLUMN COMMENT 變亂碼


進行檢查
SELECT * FROM `COLUMNS` WHERE table_schema = 'sca-xoops' and (column_comment is not
null and column_comment <> '') and column_comment like '%?%';

事件:關閉資料庫主從同步
https://blog.csdn.net/mrbuffoon/article/details/105708418
https://www.jianshu.com/p/098ee5e5d5bc
https://blog.csdn.net/u013230234/article/details/79926675

事件:SUDO LOGROTATE
https://xyz.cinc.biz/2021/09/linux-sudo-log-command.html

事件:資料庫主從設定
https://blog.csdn.net/qq_39375149/article/details/126343769
https://blog.51cto.com/u_15281317/2942318
https://blog.csdn.net/jiewolf/article/details/124030597

事件:mysql workbench 連線問題 Lost connection to MySQL server at ‘reading initial


communication packet’, system error: 0
https://www.cnblogs.com/hwaggLee/p/5488702.html

事件:更新 OPENSSH
https://www.cnblogs.com/scivous/p/17049479.html

You might also like