代码改变世界

alias 中使用 awk

2020-12-25 16:15 by jetwill, 579 阅读, 0 推荐, 收藏, 编辑
摘要:alias hehistory10='history |awk "{print \$2}"|sort|uniq -c|sort -rn|head -10' alias lv='ls -l|awk -F" " "{print \$9}"' # $要转义 阅读全文

git branch --set-upstream-to 本地关联远程分支

2020-12-02 10:06 by jetwill, 15268 阅读, 2 推荐, 收藏, 编辑
摘要:最近使用git pull的时候多次碰见下面的情况: There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) 阅读全文

mysql5.7初始化密码报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement

2020-12-02 09:05 by jetwill, 367 阅读, 0 推荐, 收藏, 编辑
摘要:mysql初始化密码常见报错问题 1,mysql5.6是密码为空直接进入数据库的,但是mysql5.7就需要初始密码 cat /var/log/mysqld.log | grep password 2,然后执行 mysql -uroot -p ,输入上面的到的密码进入,用该密码登录后,必须马上修改新 阅读全文

Python 国内镜像源

2020-12-02 09:00 by jetwill, 121379 阅读, 2 推荐, 收藏, 编辑
摘要:让 python pip 使用国内镜像源 国内镜像源: 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.ed 阅读全文

PyCharm - 关联mysql失败 - Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually.

2020-12-02 08:55 by jetwill, 118 阅读, 0 推荐, 收藏, 编辑
摘要:时区错误,MySQL默认的时区是UTC时区,比北京时间晚8个小时。 所以要修改mysql的时长 在mysql的命令模式下,输入: set global time_zone='+8:00'; 再次连接成功 阅读全文

MySQL 表字段唯一性约束设置方法unique

2020-12-02 08:44 by jetwill, 3292 阅读, 2 推荐, 收藏, 编辑
摘要:1. 建表时加上唯一性约束 CREATE TABLE `t_user` ( `Id` int(11) NOT NULL AUTO_INCREMENT, -- 自增 `username` varchar(18) NOT NULL unique, -- 唯一性约束 `password` varchar( 阅读全文

ch01系统基础信息模块详解

2020-11-16 23:12 by jetwill, 654 阅读, 0 推荐, 收藏, 编辑
摘要:第1章 系统基础信息模块详解 1.1 系统性能信息模块 psutil 解决VMWare在Windows10的安装问题: 安装VC Redistributable 2017 解决虚拟机的上网问题:修改VMWare 的网络设置 解决PuTTY连接不上虚拟机的问题:修改VMnet8的IPv4地址 在Cen 阅读全文

Django出错提示TemplateDoesNotExist at /

2020-11-08 22:23 by jetwill, 1834 阅读, 0 推荐, 收藏, 编辑
摘要:Issue: 打开login URL的时候报错如下: Action: 在setting.py中修改DIRS,模板文件目录 TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os 阅读全文

windows更改pip源(可用)

2020-11-08 21:03 by jetwill, 748 阅读, 0 推荐, 收藏, 编辑
摘要:中国科学技术大学 : https://pypi.mirrors.ustc.edu.cn/simple 清华:https://pypi.tuna.tsinghua.edu.cn/simple 豆瓣:http://pypi.douban.com/simple/ 华中理工大学 : http://pypi. 阅读全文

怎样在 CentOS/RHEL 7/6 上安装和配置 Sendmail 服务器

2020-10-01 17:50 by jetwill, 846 阅读, 0 推荐, 收藏, 编辑
摘要:在 CentOS 上,可以通过 mailx 命令 或 sendmail 命令来给因特网发送电子邮件。 关于前者的文章比较多,关于后者的文章比较少。 这里记录了我在 CentOS 7 上安装和配置 sendmail 服务器的过程。 1. 安装 Sendmail yum install sendmail 阅读全文
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页