首页 > 其他 > 详细

aliyun折腾记录

时间:2019-05-22 12:56:49      阅读:286      评论:0      收藏:0      [点我收藏+]

缘起

最早淘宝购买的一台vps突然抽风,联系运维也没结果,一怒之下就断续了,之后半年就处于空档期。最近被推送了一个aliyun轻量化服务器的广告,1G cpu+1G ram+40G disk+1T 流量只要24元/月,还算实惠,就买了一台。总结如下,aliyun只适合玩玩,不适合做梯子。

 

第一部分

系统

个人比较喜欢debian,所以选择的系统镜像是debian8.9。目前debian已经发展到debian9,对于debian8的维护已经停止,所以使用apt时只能用jessie,其他例如jessie-updates都会出错。

deb https://xxx.xxx/debian/ jessie main contrib non-free  这行不会出错

deb https://xxx.xxx/debian/ jessie main contrib non-free  这行会出错

出错信息W: Failed to fetch http://ftp.uk.debian.org/debian/dists/jessie-updates/InRelease  Unable to find expected entry ‘main/source/Sources‘ in Release file (Wrong sources.list entry or malformed file)

 

所以安装完aliyun提供的debian8.9后,第一件要做的事就是升级到debian9,步骤如下:

1. su - root

2. apt update && apt upgrade

3. vim /etc/apt/sourecs.list,将jessie替换为stretch(s/jessie/stretch/g)。注:aliyun镜像提供的apt源是写在/etc/apt/sources.list.d/sources.aliyun-*.list中,可以删除或修改。

4. apt update && apt upgrade 这是最小化升级

5. apt dist-upgrade 这是完全升级

6. apt autoremove && apt clean 升级完成后卸载不需要的软件包和清理升级缓存

7. reboot

8. lsb_release -a 查看debian版本

 

aliyun折腾记录

原文:https://www.cnblogs.com/memphise/p/10905223.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!