命令速查
pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple
pip config unset global.index-urlpip freeze > requirements.txt
pip install -r requirements.txtpython.exe -m pip install --upgrade pipGit
git config --global http.proxy http://127.0.0.1:7897
git config --global https.proxy http://127.0.0.1:7897git config --global --get http.proxy
git config --global --get https.proxygit config --global --unset http.proxy
git config --global --unset https.proxytouch ~/.bashrc
alias git-log='git log --pretty=oneline --all --graph --abbrev-commit'Conda
conda config --set auto_activate_base false
#默认源
conda config --remove-key channels
# 换源
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --set show_channel_urls yes
conda config --show channelsMySQL
ALTER USER 'root'@'localhost' IDENTIFIED BY '密码';
FLUSH PRIVILEGES;use mysql;
update user set authentication_string='' where user='root';
alter user 'root'@'%' identified by '密码';
FLUSH PRIVILEGES;CREATE DATABASE IF NOT EXISTS `database_name` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `database_name`;KillPort
netstat -ano|findstr 8000
taskkill -F -PID 4396lsof -i:8000
kill -9 4396Npm
# 设置淘宝源
npm config set registry https://registry.npmmirror.com
# 设置官方源
npm config set registry https://registry.npmjs.org/
# 查看当前源
npm get registry
# 清除缓存
npm cache clean --forceYarn
# 设置淘宝源
yarn config set registry https://registry.npmmirror.com/
# 设置官方源
yarn config set registry https://registry.yarnpkg.com/
# 查看当前源
yarn config get registry
# 清除缓存
yarn cache cleanPnpm
# 设置淘宝源
pnpm config set registry https://registry.npmmirror.com/
# 设置官方源
pnpm config set registry https://registry.npmjs.org/
# 查看当前源
pnpm get registry
# 清除缓存
pnpm store prune
许可协议:
CC BY 4.0