![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
twomiao
爱笑的男孩子~
展开
-
因手贱导致Python2.7.5 和 Yum命令无法使用
前提:本想安装Python3,因为Centos 自带Python2。想要果断卸载掉,使用最新版Python3未曾想到依赖挺多,导致Yum安装无法使用,这个后果很严重。1. 首先需要去http://rpm.pbone.net/ 这个地方搜索以下rpm安装包: 1) 打开网址后: 2) 通过“search”搜索以下 6个RPM包(主要是Python 2.7.5 以及依赖项):3) 接下来rpm...原创 2018-06-21 11:21:33 · 5760 阅读 · 2 评论 -
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
太久没有使用服务器上的数据库, 今天登录发现提示错误信息“Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)”。接下来我们就来解决下:1,通过whereis my.cnf 数据库配置文件位置,通过编辑mysql.sock套接字文件位置:注意:通过命令 mkdir -p /tmp/mysql...原创 2019-01-03 21:23:23 · 52556 阅读 · 4 评论 -
Ubuntu 18.04.2 LTS sftp 连接失败,个人原因:
1,sshd 连接失败,vim /etc/ssh/sshd_config2,通过命令“/etc/init.d/ssh restart”,重启ssh原创 2019-07-01 14:25:17 · 2323 阅读 · 0 评论 -
关闭多个子进程Linux命令,便于查找
命令:ps -ef | grep Serve | grep -v grep | cut -c 9-15 | xargs kill -9原创 2019-06-24 21:49:19 · 198 阅读 · 0 评论