w
h
y
?
y
o
u
a
r
e
h
e
r
e
?
123find / -name my*.cnfvim /usr/my.cnf
在[mysql]下添加
1skip_grant_tables
保存之后重新登陆
1mysql -u root -p
直接回车即可
1234567use mysql;update user SET password=pass
...
安装 iOSopendev 之后报错
App Installation failed, No code signature found.
解决办法
修改权限
1sudo chmod -R 777 /Applications/Xcode.app/Contents/Developer/Platforms
...
1.激活虚拟环境
1source venv/bin/activate
2.在虚拟环境中安装jupyter
1234567pip install jupyterpython -m ipykernel install --user --name=venvjupyter kernelspec listLA
...
1.安装phtyon
phtyon官网
https://www.python.org/
2.安装pip
123curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pysudo python3 get-pip.py
3.创建虚拟环境
123sudo
...
12345678910111213141516171819cd /etc/yum.repos.dcd ..mkdir repoBackcd /etc/yum.repos.dmv * ../repoBackwget http://mirrors.aliyun.com/repo/Centos-7.rep
...
ifcfg-eth0 里面的MAC地址与真实地址不匹配
查看本机实际MAC的命令是 ifconfig eth0
然后编辑保存即可
TYPE=Ethernet #网卡类型DEVICE=eth0 #网卡接口名称ONBOOT=yes #系统启动时是否自动加载BOOTPROTO=static #启用地址协议 static静态协议 bootp协议 dhcp协议IPADDR=192.168.1.50 #网卡IP地址NETMASK=255.
...
No package ifconfig available.Error: Nothing to do
yum search ifconfig
yum install net-tools.x86_64
向前翻看
1shift+PgUp
向后翻看
1shift+PgDown
移动文件
1mv 文件名 移动目的地文件名
重命名文件
1mv 文件名 修改后的文件名
删除文件夹命令
1rm -rf /var/log/httpd/access
删除文件
1rm -f /var/log/httpd/acces
...
1234567cd /etc/yum.repos.dllmv 带有.bak 的文件 去除.bakyum grouplist