mac出现无法上网的问题
电脑总盘符(/)-资源库-Preferences文件夹-SystemConfiguration文件夹-只保留文件com.apple.smb.server.plist/com.apple.Boot.plist
MYSQL 命令行操作
启动mysql
$ sudo /usr/local/mysql/support-files/mysql.server start
停止mysql
$ sudo /usr/local/mysql/support-files/mysql.server stop
重启mysql
$ sudo /usr/local/mysql/support-files/mysql.server restart
Brew 更新慢的问题
~ $ cd "$(brew --repo)"
/usr/local/Homebrew $ git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
/usr/local/Homebrew $ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core $ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core $ brew update
Updated 1 tap (homebrew/core)
Brew安装软件
安装telnet
$ brew install telnet
安装iproute
$ brew install iproute2mac
$ ip a
MacOS 命令
lsof macos自带命令, 不需要通过brew安装
$ lsof -i:3306 # 列出谁在使用3306端口
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Navicat 1102 cjw 10u IPv4 0xdb4b36948523ba7b 0t0 TCP localhost:49570->localhost:mysql (ESTABLISHED)
$ lsof -i # 列出所有网络链接
$ lsof -i tcp # 列出所有tcp网络连接
$ lsof -i udp # 列出所有udp网络连接
$ lsof -i | grep -i ESTABLISHED #找出已建立的连接
$ lsof -i | grep -i LISTEN # 找出监听端口
mac系统中pycharm激活
1. 下载新版破解补丁
将文件 jetbrains-agent.jar
加入 pycharm
的bin
目录下 (/Applications/PyCharm.app/Contents/bin
)
2. 修改配置文件
先Evaluate for free模式进入软件, 然后修改配置文件
进入到项目界面后,选择Configure-Edit Custom VM Options...
, 加入-javaagent:/Applications/PyCharm.app/Contents/bin/jetbrains-agent.jar
3. 重启pycharm并激活
Configure-Manage Licence
,选择 'License server', 然后填入 http://jetbrains-license-server
, 则激活成功, 如果激活不成功, 通过激活码进行激活