mac配置防火墙
在 macOS 中,防火墙(Firewall)的设置通常通过系统偏好设置(System Preferences)中的“安全性与隐私”面板来进行配置,但也可以通过终端(Terminal)命令来修改防火墙设置。macOS 还使用一个名为 pf.conf 的文件来配置其内置的 Packet Filter(PF),这是一个强大的网络过滤工具。 通过系统偏好设置配置防火墙 打开“系统偏好设置”。 点击“安全性与隐私”。 选择“防火墙”选项卡。 点击“防火墙选项...”。 在这里,你可以启用或禁用防火墙,以及配置特定的规则,如允许或阻止特定的应用程序访问网络。 通过终端(Terminal)配置防火墙如果你希望通过命令行来配置防火墙,可以使用 pfctl 命令。pfctl 是一个用于管理 PF 防火墙的工具。 启用防火墙1sudo pfctl -e 禁用防火墙1sudo pfctl -d 查看防火墙状态1sudo pfctl -s rules 编辑 pf.conf 文件pf.conf 文件位于 /etc/pf.conf。你可以使用文本编辑器(如 nano 或...
mac开发&环境配置篇
Usage habit Ice, to hide status bar do not use bar appearance, this will cause a bug to use alt + tab instead of the localized function: https://github.com/lwouis/alt-tab-macos to use scroll in windows style: https://github.com/pilotmoon/Scroll-Reverser config the Modifier key & shortcuts: turn off off the shortcuts system setting → 键盘 → 键盘快捷键 → 修饰键 display all hide files or directory type on terminal: defaults write com.apple.finder AppleShowAllFiles YES type on...
iTerm2安装配置使用指南
转自:https://zhuanlan.zhihu.com/p/550022490 安装指南软件安装官网下载安装官方下载地址: iTerm2官网iTerm2.com/downloads.html 根据个人需求下载正式稳定版或者beta版,下载完成之后,双击打开zip包,解压至当前文件夹, 双击打开iTerm.app,根据弹窗提示点击Move to Applications Folder即可。 Homebrew安装打开电脑终端,命令行输入如下命令回车: 1brew install iTerm2 如提示未安装Homebrew,参考这篇文章进行安装 金牛肖马:Homebrew国内如何自动安装(国内地址)(Mac &...