Linux 文章列表
欢迎访问 Linux 技术专栏!
欢迎访问 Linux 技术专栏!
在Alpine Linux中设置密钥登录(SSH Key-Based Authentication)可以提高安全性并简化日常登录过程。以下是步骤:
在此教程中,我们将创建2 GB大小的交换空间文件。如果要添加更多交换空间,请将2G替换为你所需交换空间的大小。
创建一个指定大小文件的方式在Ubuntu 20.04中有两种,分别fallocate和dd命令。但你也可以使用你喜欢的方式创建交换空间文件,
fallocate和dd命令都可以帮助快速创建指定大小的文件,fallocate比dd 命令更易于理解。具体选择取决于你。
如果您的系统上没有fallocate命令,或者您收到一条错误消息,提示fallocate failed: Operation not supported操作不支持。
你可使用dd命令创建swap交换空间文件。以下fallocate和dd命令将会在你Ubuntu 20.04的根目录中创建交换空间文件/swapfile,大小是2G。
Today while trying to start ssh server on my WSL Ubuntu installation on command [ sshd -t ], I got this error:
抵制内存超售,提高小鸡稳定性 禁用Balloon气球驱动.
提供一个 /etc/sysctl.conf 供参考. 实测效果良好.
I had the same problem of "gpg: keyserver timed out" with a couple of different servers. Finally, it turned out that I didn't need to do that manually at all. On a Debian system, the simple solution which fixed it was just (as root or precede with sudo):