全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1609|回复: 7

关于LXC架构的问题!!!大佬来!

[复制链接]
发表于 2018-10-12 12:03:07 | 显示全部楼层 |阅读模式
我用的LXC架构的机器,然后宝塔面板居然直接是显示的CPU总核数,这个是因为我架构的问题吗?怎么解决????
发表于 2018-10-12 17:19:51 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2018-10-12 12:21:40 | 显示全部楼层
快乐的小2b 发表于 2018-10-12 12:16
怎么设置?
命令????
大佬教下!

我有的hif。不会设置。只是告诉你 。你是设置的问题。
发表于 2018-10-12 12:13:54 | 显示全部楼层
设置的问题 我用hif的只会显示分配了多少核。
发表于 2018-10-12 12:05:02 | 显示全部楼层
是的 lxc显示主机的
 楼主| 发表于 2018-10-12 12:16:39 | 显示全部楼层
hxuf 发表于 2018-10-12 12:13
设置的问题 我用hif的只会显示分配了多少核。

怎么设置?
命令????
大佬教下!
发表于 2018-10-12 14:01:26 | 显示全部楼层
CONTROL GROUP
This configuration will setup several control groups for the application, cpuset.cpus restricts usage of the defined cpu, cpus.share prioritize the control group, devices.allow makes usable the specified devices.


        lxc.cgroup.cpuset.cpus = 0,1
        lxc.cgroup.cpu.shares = 1234


https://linuxcontainers.org/lxc/manpages//man5/lxc.container.conf.5.html

都不看配置文件的么?
发表于 2018-10-12 17:46:36 来自手机 | 显示全部楼层
h2o 发表于 2018-10-12 17:19
lxc比docker还精简

隔离级别openvz>docker>lxc

那哪个好用
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-2-7 12:19 , Processed in 0.065057 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表