随笔分类 -  Linux

Ubuntu
摘要:在CentOS 7.0上安装 Docker-CE 官方源安装教程 https://docs.docker.com/install/linux/docker-ce/centos/#install-using-the-repository 阿里源安装教程 https://help.aliyun.com/ 阅读全文
posted @ 2019-04-06 14:28 Leo~Chan 阅读(5097) 评论(0) 推荐(0)
摘要:CentOS 7.0自带Python2.7 安装Python3.6步骤 1.安装依赖 2.下载需要安装的Python版本 从Python的官网下载Python3.X的版本,具体可以从https://www.python.org/ftp/python/下载,在这里我选择的版本是Pyhon3.6.4 在 阅读全文
posted @ 2019-04-05 21:58 Leo~Chan 阅读(6765) 评论(0) 推荐(0)
摘要:在CentOS7.0中输入ifconfig命令会遇到-bash: ifconfig: command not found。 在CentOS最小安装时是没有附带ifconfig,我们进入sbin目录下可以查看到ifconfig命令是没有安装的 因此这个时候我们只要安装net-tool插件,此插件中带有 阅读全文
posted @ 2019-04-05 18:39 Leo~Chan 阅读(2878) 评论(0) 推荐(1)
摘要:这里介绍如何把CentOS默认镜像源更换为阿里云镜像源 1.备份 2.下载新的CentOS-Base.repo 到 /etc/yum.repos.d/ (我这里用的CentOS 7.0) 3、之后先清除缓存再生成缓存 阅读全文
posted @ 2019-04-05 15:35 Leo~Chan 阅读(27428) 评论(0) 推荐(0)
摘要:CentOS 7.0安装 本次通过虚拟机的方法安装CentOS 7.0操作系统,开启虚拟机后会出现以下界面 1.选择第一项,Install CentOS 7 (安装CentOS 7),进入下面的界面 2.选择语言(英文版本)与键盘(美式键盘) 3.设置日期和时间 4.软件选择 #默认最小安装 5.系 阅读全文
posted @ 2019-04-04 00:58 Leo~Chan 阅读(646) 评论(0) 推荐(0)
摘要:Ubuntu关闭网络服务命令: service network-manager stop 重启网络服务命令: service network-manager restart 阅读全文
posted @ 2018-09-13 10:53 Leo~Chan 阅读(18765) 评论(0) 推荐(0)
摘要:在虚拟机新建一个Ubuntu18.04.1-live-server-amd64当做服务器 在安装软件时报错: slave@slave:~$ sudo -s[sudo] password for slave: root@slave:~# apt install redis-serverReading 阅读全文
posted @ 2018-09-11 17:50 Leo~Chan 阅读(9493) 评论(0) 推荐(1)
摘要:在Python3.5中安装Scrapy第三方库 安装到后面出现的这类错误: error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub. 阅读全文
posted @ 2018-09-11 17:49 Leo~Chan 阅读(204) 评论(0) 推荐(0)
摘要:在Ubuntu17.04下,遇到清空回收站文件时报错,提示”Failed to delete the item from the trash”,无法清空回收站。 回收站其实就是一个文件夹,存放着被删掉的文件。 Ubuntu回收站的路径: 解决方法 打开终端运行以下命令强制清空回收站目录下的所有文件: 阅读全文
posted @ 2018-08-14 22:47 Leo~Chan 阅读(2410) 评论(0) 推荐(0)