mirrors

docker容器内apt快速更换国内源

半世苍凉 提交于 2020-04-05 15:43:12
mv /etc/apt/sources.list /etc/apt/sources.list.bak echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" >> /etc/apt/sources.list echo "deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list echo "deb-src http://mirrors.163.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list echo "deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list #更新安装源 apt-get update 来源: oschina 链接: https://my.oschina.net/u/4188716/blog/3217843

Centos之文件搜索命令locate

佐手、 提交于 2020-03-31 06:09:58
locate命令 locate 文件名 在后台数据库中按文件名搜索,搜索速度更快 /var/lib/mlocate #locate命令所搜索的后台数据库 updatedb 更新数据库 locate搜索速度比较快; [root@localhost ~]# ls 222 anaconda-ks.cfg 牛逼 [root@localhost ~]# locate 牛 -bash: locate: 未找到命令 我们用locate命令的时候 发现 为找到命令,我们用Yum命令远程安装下locate [root@localhost ~]# yum -y install mlocate 已加载插件:fastestmirror base | 3.6 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 (1/4): extras/7/x86_64/primary_db | 168 kB 00:00 (2/4): base/7/x86_64/group_gz | 155 kB 00:02 (3/4): base/7/x86_64/primary_db | 5.6 MB 00:04 updates/7/x86_64/primary_db FAILED http://mirrors.nju.edu.cn/centos/7.3.1611/updates

查询某个命令由哪个包提供

痞子三分冷 提交于 2020-03-17 19:45:35
[root@xuegod41 CA]# yum whatprovides /usr/bin/certtool Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: ftp.cuhk.edu.hk * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com gnutls-utils-2.12.23-21.el6.x86_64 : Command line tools for TLS protocol Repo : base Matched from: Filename : /usr/bin/certtool gnutls-utils-2.12.23-21.el6.x86_64 : Command line tools for TLS protocol Repo : installed Matched from: Other : Provides-match: /usr/bin/certtool 来源: https://www.cnblogs.com/hailun1987/p/7260456.html

Ubuntu->第一天入门

梦想的初衷 提交于 2020-03-14 11:11:11
折腾了一下午装了一个Ubuntu系统,感觉界面干净,系统流畅 电脑是双系统,用easyBCD做引导时手贱~把win10引导给删了,win10现在进不了 网上还没有找到解决方法,现在不管了,先熟练这linux操作几天再处理下,要不删了win10~~~ CTRL+ALT+T ------> 调出终端快捷键 sudo i / sudo root -------> 进入管理 sudo apt-get install xxx --------> 安装源包 修改源地址: 图形界面修改->Ubuntu软件中心->编辑->软件源->下载地->其他 终端,输入命令: sudo gedit /etc/apt/sources.list 然后更新: sudo get-apt update cp /etc/apt/sources.list /etc/apt/sources.list.bak vim /etc/apt/sources.list 加入如下内容(中科大的): deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted deb http://mirrors.ustc

adb 安装失败

杀马特。学长 韩版系。学妹 提交于 2020-03-04 08:14:31
打开Terminal终端:Ctrl + Alt + T 按顺序执行以下三条命令: sudo add-apt-repository ppa:nilarrimogard/webupd8 sudo apt-get update sudo apt-get install android-tools-adb android-tools-fastboot 安装过程如果出现需要安装其他的组件,就按照提示安装即可。 安装后,将手机设置成USB调试模式,通过数据线接至pc机。 执行如下命令测试adb的安装是否成功: adb devices 如下是我安装的过程: wangjie@wangjie-A8Se:~$ sudo add-apt-repository ppa:nilarimogard/webupd8 [sudo] password for wangjie: //输入密码获取root权限 You are about to add the following PPA to your system: The main Web Upd8 PPA maintained by: http://www.webupd8.org/ To add this PPA, simply paste this in a terminal: sudo add-apt-repository ppa:nilarimogard

nginx文件服务器搭建

﹥>﹥吖頭↗ 提交于 2019-12-31 01:24:59
一. 安装 (CentOS 7) yum install nginx -y 如果报错: [u3@L3 /]$ sudo yum install nginx -y Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.cn99.com * extras: mirrors.cn99.com * updates: mirrors.aliyun.com No package nginx available. Error: Nothing to do 先安装 epel yum install epel-release 二. 启动 1、service nginx start 2 、访问 三. 文件目录配置 1 、 vi /etc/nginx/nginx.conf root 配置: #root /usr/share/nginx/html; root /opt/package/ ; Location / {} 配置: location /package { autoindex on; autoindex_exact_size on; # 显示文件大小 autoindex_localtime on; # 显示文件更新时间 charset utf-8,gbk

apt 镜像源快速替换

丶灬走出姿态 提交于 2019-12-28 13:18:17
mv /etc/apt/sources.list /etc/apt/sources.list.bak && \ echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" >/etc/apt/sources.list && \ echo "deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list && \ echo "deb-src http://mirrors.163.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list && \ echo "deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list 来源: https://www.cnblogs.com/qianxunman/p/12111354.html

yum安装python3.6的方法

╄→尐↘猪︶ㄣ 提交于 2019-12-04 11:34:44
# centos7 # 换成阿里云的yum源 yum -y install epel-release yum repolist yum -y install python36 测试 [root@localhost ~]# python3 Python 3.6.8 (default, Aug 7 2019, 17:28:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> exit() [root@localhost ~]# yum repolist Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: www.nic.funet.fi * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com repo id repo name status base/7/x86_64 CentOS-7 - Base - mirrors.aliyun.com 10,097 epel

docker-compose 安装

情到浓时终转凉″ 提交于 2019-12-03 23:52:54
安装 python-pip   1、首先检查linux有没有安装 python-pip包,终端执行 pip -V 1 2 [root@vm-50-151 network-scripts]# pip -V -bash: pip: command not found   2、没有python-pip包就执行命令 yum -y install epel-release 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 [root@vm-50-151 network-scripts]# yum -y install epel-release Loaded plugins: fastestmirror, langpacks base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/2): extras/7/x86_64/primary_db | 129 kB 00:00:05 (2/2): updates/7/x86_64/primary_db | 3.6 MB 00:00:09 Loading mirror