We all know that in a small company, we not only need code development, but also need some operation and maintenance ability. Because small companies often do not have special operation and maintenance personnel, and everything needs to be done by ourselves.
Below I will learn in the process of normal operation and maintenance of some Ubuntu operation and maintenance experience to share.
Recently, she got a new server, and after she tapped apt Update, she went out to eat happily. After that, she was ready to deploy the service directly.
He came back half an hour later, found a bunch of Err, and crashed.
It feels like a game of Kings with disconnected WiFi.
We all know that in a small company, we not only need code development, but also need some operation and maintenance ability. Because small companies often do not have special operation and maintenance personnel, and everything needs to be done by ourselves.
Below I will learn in the process of normal operation and maintenance of some Ubuntu operation and maintenance experience to share.
Recently, she got a new server, and after she tapped apt Update, she went out to eat happily. After that, she was ready to deploy the service directly.
He came back half an hour later, found a bunch of Err, and crashed.
It feels like a game of Kings with disconnected WiFi.
Tried many times, or give up, the update speed is not as versatile as a certain degree. Fortunately at this time a Chen’s colleague a new found, help to knock a few lines of code, immediately take off! The speed is whizzing.
Share to everybody below.
Ubuntu switch to a domestic image source
$ cd /etc/apt/
$ cp sources.list sources.list.bak ## Backup system source list
# # to choose the right image of the source, such as ali cloud image of http://mirrors.aliyun.com/ubuntu
$ sed -i 's/^\(deb\|deb-src\) \([^ ]*\) \(.*\)/\1 http:\/\/mirrors.aliyun.com\/ubuntu \3/' sources.list
Update the apt # #
$ apt-get update
Copy the code
Domestic mirror source
The name of the | address |
---|---|
Ali mirror source | mirrors.aliyun.com/ubuntu |
Tsinghua University mirror source | mirrors.tuna.tsinghua.edu.cn/ubuntu/ |
Netease Image Source | mirrors.163.com/ubuntu/ |
Northeastern University mirror source | mirror.neu.edu.cn/ubuntu/ |
It is suggested that people working in China, whether it is the company or personal server, the first time to modify the domestic mirror source, will save a lot of time, these time used to pick up the sister is not sweet?
Mirror source you can choose freely ha, there are better can leave a message below! I trust Ali, so it is ali mirror source.
If this blog has been helpful to you, please remember to leave a comment + like + bookmark.
I am Chen, on the road of technology we forge ahead together!