More issues

Mac: You have mail.

最近打开 iTerms 2 就会看到这样的一个提示: Last login: Fri May 17 21:32:09 on ttys000 You have mail. 查了下发现原来 linux/unix-like 的系统用户,会有个 terminal 版的内部消息 mail 系统。 可以通过下面的命令去打开: mail 打开的界面是纯文本列表,翻页、退出等操作按键和 vim 一样。我打开看了下自己收到的 mail,全部都是 crontab 的任务 log — 不管是成功还是失败的。 Crontab 原来 crontab 的任务 log,会默认 mail 给你的账户。如果要停止发送邮件,可以添加下面三行的任意一种到你的
1 min read

Oracle VM 开放 80/443 端口

记录一下怎么配置 Oracle Cloud 的 VM 网络端口,感觉很不直观。端口开放需要同时开放 instance 内部防火墙和 Internet Gatway 的端口 开放 instance 内部 firewall 端口 Oracle 安装的 ubuntu 默认关闭了除 22 之外的全部端口,我倾向关闭 instance 的防火墙(开放全部端口) sudo iptables -P INPUT ACCEPT sudo iptables -P OUTPUT ACCEPT sudo iptables -P FORWARD ACCEPT sudo iptables -F 但也可以选择开放部分端口: sudo apt install
1 min read

Subscribe to 成蹊笔记

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe