Modify the System update source
Are you like me? When you first contact with Linux when the system updates the source problem get dizzy, different Linux update source configuration is not the same, in addition, because the default installation of the source is mostly foreign updates, speed relative to the domestic will be much slower, Next, we will introduce the method of updating system source in CentOS and Ubuntu system, update source with 163 update source as example CentOS update system source
First back up/etc/yum.repos.d/centos-base.repo
Mv/etc/yum.repos.d/centos-base.repo/etc/yum.repos.d/centos-base.repo.bak
Download the corresponding version of the repo file, put the/etc/yum.repos.d/(again remind the operation please do the appropriate backup)
CentOS7
CentOS6
CentOS5
Finally run the command generation cache
Yum Clean all
yum Makecache
Enjoy the flying speed. Ubuntu Update System source
First back up/etc/apt/sources.list
Mv/etc/apt/sources.list/etc/apt/sources.list.bak
Then download the appropriate version of the Sources.list, overwriting/etc/apt/sources.list (please do the appropriate backup before you remind the operation again)
Lucid (10.04)
Precise (12.04)
Trusty (14.04)
Utopic (14.10)
Vivid (15.04)
Wily (15.10)
overrides are complete and can be modified directly if not backed up/etc/apt/ Sources.list file, take wily (15.10) as an example, edit the/etc/apt/sources.list file, add the following entries at the top of the file (make the appropriate backup before you do it again)
Deb http://mirrors.163.com/ubuntu/wily main restricted universe Multiverse
Deb http://mirrors.163.com/ubuntu/ Wily-security main restricted universe Multiverse
Deb Http://mirrors.163.com/ubuntu/wily-updates main restricted Universe Multiverse
Deb http://mirrors.163.com/ubuntu/wily-proposed main restricted universe Multiverse
Deb Http://mirrors.163.com/ubuntu/wily-backports main restricted universe multiverse
deb-src http://mirrors.163.com /ubuntu/wily main restricted universe Multiverse
deb-src http://mirrors.163.com/ubuntu/wily-security Main Restricted universe Multiverse
deb-src http://mirrors.163.com/ubuntu/wily-updates main restricted universe Multiverse
deb-src http://mirrors.163.com/ubuntu/wily-proposed main restricted universe multiverse
DEB-SRC Http://mirrors.163.com/ubuntu/wily-backports Main restricted Universe multiverse
Modify Finish Save
Finally need to implement
sudo apt-get update
Modify the PIP update source
PIP installation default Access PyPI, but the speed of pypi for the domestic is a bit slow, there are also some of the PIP source, the benefit of the vast number of programmers
PIPY Domestic Mirror currently has:
http://pypi.douban.com/Watercress
http://pypi.hustunique.com/Huazhong University of Technology
http://pypi.sdutlinux.org/Shandong University of Technology
http://pypi.mirrors.ustc.edu.cn/China University of Science and Technology
When installing, we can manually specify the installation source as follows:
Pip-i http://pypi.douban.com/simple Install Flask
You can also configure the PIP update source if you feel that you are manually specifying the installation source for each installation
Create the. Pip folder under the home directory
mkdir ~/.pip
Then create the pip.conf file in the directory to write the following:
[Global]
Trusted-host = pypi.douban.com
index-url = http://pypi.douban.com/simple
Here, for example, the source of watercress, because the latest PIP installation requires the use of HTTPS encryption, so you need to add trusted-host
For Windows systems, basic configuration is the same. Create or modify profiles in%homepath%\pip\pip.ini reference links:
http://topmanopensource.iteye.com/blog/2004853
http://mirrors.163.com/.help/ubuntu.html
http:// mirrors.163.com/.help/centos.html