git 设置用户名邮箱
在Git中,设置用户名和邮箱是非常重要的,因为它能帮助你在提交代码时正确地标识自己。你可以通过以下步骤来设置Git的用户名和邮箱: 1. 配置全局用户名和邮箱如果你想要为你的所有Git仓库设置相同的用户名和邮箱,你可以使用git config –global命令。打开你的终端或命令提示符,然后输入以下命令: 12git config --global user.name "Ekzykes"git config --global user.email "atlaseuan@163.com" 将”你的用户名”和”你的邮箱@example.com”替换为你的实际用户名和邮箱。 2. 配置特定仓库的用户名和邮箱如果你只想为特定的Git仓库设置用户名和邮箱,而不是全局设置,你可以在仓库目录下使用以下命令: 12git config user.name "Ekzykes"git config user.email "atlaseuan@163.com" 同样地,将”你的用户名”和”你的邮箱@example.c...
Linux 安装Miniconda3
获取conda 1wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh 安装conda: 1bash Miniconda3-latest-Linux-x86_64.sh 重启终端: 查看镜像: 1conda config --show-sources 配置镜像(北外): 1234567conda config --set show_channel_urls yesconda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge/...
MongoDB创建用户并且赋予读写权限
12345678db.createUser({ user: "myUser", pwd: "myPassword", roles: [ { role: "readWrite", db: "mydatabase" }, { role: "read", db: "anotherdatabase" } // 只有读权限 ]});
pip设置国内镜像
pip设置国内镜像 1pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
Windows 安装MiniConda(配置环境PowerShell问题自定义虚拟环境路径)
一、Minicanda安装打开浏览器,跳转到MiniConda官网,向下滑动找到并点击Miniconda3 Windows 64-bit 二、安装MiniConda无脑下一步,安装完毕 三、添加环境变量 path\to\your\minicondapath\to\your\miniconda\Library\binpath\to\your\miniconda\Scripts 四、PowerShell问题 打开PowerShell终端 键入指令conda init powershell,初始化conda 键入指令Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser修改PowerShell限制策略 重启PowerShell,检查conda activate是否生效 五、设置虚拟环境安装路径在C:\Users\用户名中找到 .condarc 文件,选中右键,在记事本中编辑打开,将下面的文本复制进去 12345envs_dirs: - D:\soft\Miniconda\envs pkgs_di...
关于Nginx请求URL自动添加斜杠的端口问题
最近在使用Nginx做了两层,第一层为用户访问的Nginx反向代理,监听端口为80,第二层为处理本地静态文件、并将json数据请求代理到apche,监听端口为8080。在测试的过程中,发现一个小问题,就是当请求的URL没有斜杠时,会自动默认301跳,转添加斜杠/,通过Location跳转,跳转时带上了后端nginx的端口. 配置项 123# absolute_redirect on;server_name_in_redirect off;port_in_redirect off;
