yyqng

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

09 2021 档案

摘要:1. 修改git默认的编辑器nano为vim的两种方法 git config --global core.editor vim .git/config文件,在[core]中添加 editor = vim 2. 忽略权限的diff git status一片红色,往往只是因为文件的读写执行权限发生了变化 阅读全文
posted @ 2021-09-25 20:18 zziii 阅读(51) 评论(0) 推荐(0)

摘要:1. 原因 可能GitHub的IP经常变化,导致DNS无法解析 2. 查询IP The Best IP Address, Email and Networking Tools - IPAddress.com查询github.com的ip 3. 解决方法1: 修改C:\Windows\System32 阅读全文
posted @ 2021-09-25 17:43 zziii 阅读(240) 评论(0) 推荐(0)

摘要:1. 编译和链接 gcc hello.c执行的四个步骤: #预处理(Prepressing) gcc -E hello.c -o hello.i #编译(Compilation) gcc -S hello.i -o hello.s gcc -S hello.c -o hello.s #汇编(Asse 阅读全文
posted @ 2021-09-21 12:27 zziii 阅读(359) 评论(0) 推荐(1)

摘要:1. 在 Windows 10 上安装 WSL | Microsoft Docs 下载适用于 x64 计算机的 WSL2 Linux 内核更新包 PowerShell: wsl --set-default-version 2 2. 控制面板->应用->程序和功能->启用或关闭windows功能 勾选 阅读全文
posted @ 2021-09-20 08:31 zziii 阅读(298) 评论(0) 推荐(0)

摘要:Centos #关闭防火墙:stop暂时关闭,disable永久关闭 setenforce 0 sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config systemctl stop firewalld systemctl 阅读全文
posted @ 2021-09-18 08:26 zziii 阅读(435) 评论(0) 推荐(0)