我正在尝试在运行亚马逊的 debian 盒子上获取 roundcube/dovecot/postfix。我可以登录并接收电子邮件,但无法发送。我在 roundcube 中遇到错误,smtp authentication error (220) Authentication failed.
Roundcube错误日志:
\n[24-Sep-2020 08:47:24 +0000]: <a83d4mll> PHP Error: STARTTLS failed (POST /?_task=mail&_unlock=loading1600937244456&_framed=1&_lang=en_US&_action=send)\n[24-Sep-2020 08:47:24 +0000]: <a83d4mll> PHP Error: Invalid response code received from server (POST /?_task=mail&_unlock=loading1600937244456&_framed=1&_lang=en_US&_action=send)\n[24-Sep-2020 08:47:24 +0000]: <a83d4mll> SMTP Error: Authentication failure: STARTTLS failed (Code: ) in /opt/bitnami/apps/roundcube/htdocs/program/lib/Roundcube/rcube.php on line 1702 (POST /?_task=mail&_unlock=loading1600937244456&_framed=1&_lang=en_US&_action=send)\n
Run Code Online (Sandbox Code Playgroud)\nroundcube SMTP 日志:
\n[24-Sep-2020 08:52:08 +0000]: <a83d4mll> Connecting to tls://webmail.theomnihealthgroup.com:587...\n[24-Sep-2020 08:52:08 +0000]: <a83d4mll> Recv: 220 mail.theomnihealthgroup.com ESMTP Postfix (Debian/GNU)\n[24-Sep-2020 08:52:08 +0000]: <a83d4mll> …
Run Code Online (Sandbox Code Playgroud) 我完全按照此处的说明进行操作:https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html \n“示例:扩展 NVMe EBS 卷的文件系统”尝试将磁盘从 10 GB 增加到 20 GB。
\n当我到达第 6 步时,sudo xfs_growfs -d /
我得到xfs_growfs: / is not a mounted XFS filesystem
尝试重新启动实例,但这没有帮助。
\nlsblk
产量:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT\nnvme0n1 259:0 0 20G 0 disk\n\xe2\x94\x9c\xe2\x94\x80nvme0n1p1 259:1 0 19.9G 0 part /\n\xe2\x94\x9c\xe2\x94\x80nvme0n1p14 259:2 0 3M 0 part\n\xe2\x94\x94\xe2\x94\x80nvme0n1p15 259:3 0 124M 0 part /boot/efi\n
Run Code Online (Sandbox Code Playgroud)\ndf -h
输出:
Filesystem Size Used Avail Use% Mounted on\nudev 224M 0 224M 0% /dev\ntmpfs …
Run Code Online (Sandbox Code Playgroud) 我有一个 EC2 实例,它需要一个私钥才能使用 SSH 登录。
我想让某人轻松访问服务器上运行的WordPress实例。他们可能需要修改服务器上的一些自定义代码。
让此人临时访问服务器然后撤销的最轻松的方法是什么?我应该设置一个新的密钥对,然后在完成后改回旧的密钥对吗?或者,还有更好的方法?
如果我有这样一个带有符号链接的路径:
/this/one/two/three
是否有一个快速的单行代码来确定路径中的另外一个段是否是符号链接?例如,我想检测上面示例中的this、one、two或three是否是符号链接。
一种方法是将包含符号链接的路径与readlink -f <path>
. 想知道是否有更快的方法。