1:在Linux中查看一个文件有多少行
cat test1.txt | wc -l
2:在Linux中查看一个文件的最后一行
tail -n1 vps.txt
3:如何正确的使用动态VPS(Linux)自动更换IP
https://www.92ez.com/?action=show&id=23447
4:在Linux中后台一直运行python脚本
nohup python *.py &
5:在linux中后台停止运行python脚本
ps -ef | grep *.py(找到运行该脚本文件的进程pid)
kill -9 pid(将其杀掉)
6:Loaded plugins: fastestmirrorRepodata is over 2 weeks old. Install yum-cron?
[root@localhost ~]# vim /etc/yum.repos.d/CentOS-Base.repo
将enabled=1即可
7:删除进程id
ps -ef | grep chrome | awk ‘{ print $2 }’ | xargs kill -9
https://www.jianshu.com/p/d84950dd99a6
https://cloud.tencent.com/developer/article/1185935
8:mac安装mysql
https://www.cnblogs.com/kimbo/p/8724595.html
遇到:1045 access denied for user’root’@‘ip’(using pasword:yes)
GRANT ALL PRIVILEGES ON*.*TO’root’@’%’ IDENTIFIED BY’xxxxxx’WITH GRANT OPTION;
flush privileges;