Last active
July 28, 2020 21:58
-
-
Save zii/112655e7cc7cf589bab7d016bdf2cfb6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 修改系统最大连接数 | |
sudo vim /etc/sysctl.conf | |
kern.maxfiles=1000000 | |
kern.maxfilesperproc=1000000 | |
kern.ipc.somaxconn=1000 | |
sudo vim /etc/launchd.conf | |
limit maxfiles 1000000 1000000 | |
limit maxfilesperproc 1000000 1000000 | |
limit maxproc 100000 200000 | |
sudo vim /etc/profile | |
ulimit -n 65536 | |
# 自定义命令 | |
alias cd1="cd ~/go/src/winkim" | |
alias cd2="cd ~/go/src/winkim/bin" | |
alias cd3="cd ~/code/WinkAndroid" | |
alias gs='git status' | |
alias gd="git diff" | |
alias pull='git pull origin `git rev-parse --abbrev-ref HEAD`' | |
alias push='git push origin `git rev-parse --abbrev-ref HEAD`' | |
setupproxy() { | |
export http_proxy="127.0.0.1:1087" | |
export https_proxy="127.0.0.1:1087" | |
} | |
removeproxy() { | |
export http_proxy= | |
export https_proxy= | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment