Debian add Swap
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-debian-11
delete Swap
sudo swapoff -v /path/to/swap
sudo rm /path/to/swap
modify /etc/fstab
vim /etc/fstab
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-debian-11
sudo swapoff -v /path/to/swap
sudo rm /path/to/swap
modify /etc/fstab
vim /etc/fstab
[Warning] mariadbd: io_uring_queue_init() failed with ENOMEM: try larger memory locked limit, ulimit -l, or https://mariadb.com/kb/en/systemd/#configuring-limitmemlock under systemd (262144 bytes required)
https://docs.docker.com/compose/compose-file/compose-file-v3/#ulimits
ulimits:
memlock: -1
生成SSH公私钥,参考链接:
SHA256
ssh-keygen -t rsa -b 4096 -C "[email protected]"
ed25519:
ssh-keygen -t ed25519 -C "[email protected]"
wordpress根目录下`wp-config.php`文件内增加配置
/* Configure HTTP Proxy Server */
define('WP_PROXY_HOST', '192.168.0.1');
define('WP_PROXY_PORT', '7890');
define('WP_PROXY_USERNAME', '');
define('WP_PROXY_PASSWORD', '');
define('WP_PROXY_BYPASS_HOSTS', 'localhost');
cloud-settings-sync
nextcloud webdav注意url处只填Domain/ip
URI填到PATH处
如遇404,先在nextcloud创建指定名称文件夹
sudo apt install nfs-kernel-server
/etc/exports
/PT/wd_14t 192.168.0.1/24(rw,sync)
sudo systemctl restart nfs-kernel-server
sudo mount -o resvport,rw -t nfs 192.168.0.1:/ ~/NFS
kernel:[ 575.194113] EXT4-fs (sda2): failed to convert unwritten extents to written extents -- potential data loss! (inode 669089, error -30)
https://www.reddit.com/r/debian/comments/k2gzy4/ext4fs_failed_to_convert_unwritten_extents_to/
sudo apt install smartmontools
smartctl -t long /dev/sda
smartctl -a /dev/sda
sudo apt-get update && sudo apt-get install hdparm
get write cache status
sudo hdparm -W /dev/sda
disable
sudo hdparm -W 0 /dev/sda
enable
sudo hdparm -W 1 /dev/sda
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html
编辑boot
vim /boot/config.txt
关闭无线&蓝牙
dtoverlay=disable-wifi
dtoverlay=disable-bt