61 lines
4.7 KiB
Markdown
61 lines
4.7 KiB
Markdown
---
|
||||
|
|
title: "Centos 7 真是低配小鸡的福音! - V2EX"
|
|||
|
|
source: "https://v2ex.com/t/1117168#reply10"
|
|||
|
|
author:
|
|||
|
|
- "[[V2EX]]"
|
|||
|
|
published: 2025-03-10
|
|||
|
|
created: 2025-03-10
|
|||
|
|
description: "Linux - @Tounea - 之前买了一个 1 核 512MB 的小鸡,安装 debian 11 系统,发现启动某些服务,结果服务死活起不来,最后查看内核日志,发现是被系统进程 kill 掉了,原因是可用内存不足,一看系统内存,已"
|
|||
|
|
tags:
|
|||
|
|
- "clippings"
|
|||
|
|
---
|
|||
|
|
[首页](https://v2ex.com/) [注册](https://v2ex.com/signup) [登录](https://v2ex.com/signin)
|
|||
|
|
|
|||
|
|
**V2EX = way to explore** V2EX 是一个关于分享和探索的地方
|
|||
|
|
|
|||
|
|
[现在注册](https://v2ex.com/signup) 已注册用户请 [登录](https://v2ex.com/signin)
|
|||
|
|
|
|||
|
|
**Distributions** › [Ubuntu](http://www.ubuntu.com/) › [Fedora](http://fedoraproject.org/) › [CentOS](http://www.centos.org/) **中文资源站** › [网易开源镜像站](http://mirrors.163.com/)
|
|||
|
|
|
|||
|
|
[V2EX](https://v2ex.com/) › [Linux](https://v2ex.com/go/linux) [Tounea](https://v2ex.com/member/Tounea) · 1 小时 27 分钟前 · 826 次点击
|
|||
|
|
|
|||
|
|
之前买了一个 1 核 512MB 的小鸡,安装 debian 11 系统,发现启动某些服务,结果服务死活起不来,最后查看内核日志,发现是被系统进程 kill 掉了,原因是可用内存不足,一看系统内存,已用内存 230M ,可用内存 96M ,这还只是开机后的状态,装 ubuntu 14.04 也是差不多的情况,后面干脆直接吃灰快大半年。
|
|||
|
|
|
|||
|
|
上周末闲着无事,就尝试用 Centos 7 构建那服务,好多服务不能直接 yum ,直接编译安装各种组件坑了我大半天,结果运行还真跑起来了。
|
|||
|
|
|
|||
|
|
Centos 7 启动后已使用内存只占 86M ,可用内存还有 200M 多 M ,最后服务跑起来才占 100 多 M 内存,Centos 7 果然是香!!!
|
|||
|
|
|
|||
|
|
这是内存使用率截图
|
|||
|
|
[](https://i.imgur.com/Vt3TnKr.png)
|
|||
|
|
|
|||
|
|
[centos](https://v2ex.com/tag/centos) [memory](https://v2ex.com/tag/memory) [Performance](https://v2ex.com/tag/Performance)
|
|||
|
|
|
|||
|
|
8 条回复 **•** 2025-03-10 11:31:05 +08:00
|
|||
|
|
|
|||
|
|
| | | 1 **[w568w](https://v2ex.com/member/w568w)** 1 小时 13 分钟前 这小鸡确实有点太小了,我一般装 alpine ,最新版的内存占用大概在 50M 左右。 \> 好多服务不能直接 yum ,直接编译安装各种组件坑了我大半天 既然都用 centos 7 了,不如试一下 almalinux 和 centos stream ,内存占用应该差不多。自己编译还是太麻烦了。 |
|
|||
|
|
| --- | --- | --- |
|
|||
|
|
|
|||
|
|
| | | 2 **[MoeDisk](https://v2ex.com/member/MoeDisk)** 33 分钟前 FreeBSD 也行,而且适合养老,服务挂号几年不用管没问题( |
|
|||
|
|
| --- | --- | --- |
|
|||
|
|
|
|||
|
|
| | | 3 **[LuminousKK](https://v2ex.com/member/LuminousKK)** 27 分钟前 抛开使用难度的话,alpine 或者 debian i686 是最适合低配(<512M )机器的 |
|
|||
|
|
| --- | --- | --- |
|
|||
|
|
|
|||
|
|
| | | 4 **[adoal](https://v2ex.com/member/adoal)** 17 分钟前 CentOS 7 是 2014 首发的,对应的 Debian 版本是 7 到 8 之间。 |
|
|||
|
|
| --- | --- | --- |
|
|||
|
|
|
|||
|
|
| | | 5 **[duzhuo](https://v2ex.com/member/duzhuo)** 14 分钟前 这么小内存能够干嘛 |
|
|||
|
|
| --- | --- | --- |
|
|||
|
|
|
|||
|
|
| | | 6 **[DinnyXu](https://v2ex.com/member/DinnyXu)** 11 分钟前 1C512M ? 太小了吧...只能跑个前端的静态文件啥都 |
|
|||
|
|
| --- | --- | --- |
|
|||
|
|
|
|||
|
|
| | | 7 **[totoro625](https://v2ex.com/member/totoro625)** 7 分钟前 两台阿里云 T6 就是买的 512mb 内存版本,到手 401mb 安装官方的 debian12 ,跑了 frp+ufw+一些简单的监控程序,已用内存 137mb 、168mb ,可用内存 263mb 、231mb 太小内存的机器千万不要安装太多程序,尤其是 docker |
|
|||
|
|
| --- | --- | --- |
|
|||
|
|
|
|||
|
|
| | | 8 **[moefishtang](https://v2ex.com/member/moefishtang)** 5 分钟前 @[duzhuo](https://v2ex.com/member/duzhuo) 搭代理,转发网络流量还是可以的 500M 的带宽跑满了 cpu 占用大概在 50~60 ,内存占用 70 (开了 swap 的情况下) |
|
|||
|
|
| --- | --- | --- |
|
|||
|
|
|
|||
|
|
**[关于](https://v2ex.com/about) · [帮助文档](https://v2ex.com/help) · [博客](https://blog.v2ex.com/) · [API](https://v2ex.com/help/api) · [FAQ](https://v2ex.com/faq) · [实用小工具](https://v2ex.com/tools) · 5456 人在线** 最高记录 6679 · [Select Language](https://v2ex.com/select/language) 创意工作者们的社区 World is powered by solitude VERSION: 3.9.8.5 · 26ms · [UTC 03:36](https://v2ex.com/worldclock#utc) · [PVG 11:36](https://v2ex.com/worldclock#pvg) · [LAX 20:36](https://v2ex.com/worldclock#lax) · [JFK 23:36](https://v2ex.com/worldclock#jfk)
|
|||
|
|
Developed with [CodeLauncher](https://cl.v2ex.pro/)
|
|||
|
|
♥ Do have faith in what you're doing.
|