当红帽,CentOS的Linux母公司,宣布它是“从CentOS Linux转移焦点,重建Red Hat Enterprise Linux(RHEL),至。CentOS联合创始人Gregory Kurtzer立即宣布https://www.zdnet.com/article/goody-centos-hello-rocky-linux/“>创建自己的RHEL克隆和CentOS替换:Rocky Linux。他不是唯一一个。CloudLinux还宣布将创建一个新的CentOS clone Lenix。而且,CloudLinux每年将投入超过100万美元?CloudLinux首席执行官兼创始人Igor Seletskiy解释道:“Red Hat的发布让用户寻找一种既能满足CentOS所有功能的替代产品,又能避免不得不迁移到其他发行版。我们承诺将为Lenix项目投入所需资源,以确保公正性和非盈利性社区倡议。CloudLinux已经具备了执行任务所需的资产、基础设施和经验,我们承诺对Lenix项目的开发过程持开放态度HTTPS://www. ZdNET.COM/TUNELY/BEST-LIUX-BASIC类和ONLIN Linux“target=”2020年最佳Linux基础课程:Linux简介,云工程师训练营,还有更多的
CloudLinux已经将RHEL和CentOS代码和微调到CloudLinux操作系统。这是一个为多租户网络和服务器托管公司定制的高性能轻量级Linux服务器。
他们知道自己在做什么。凭借10年为数据中心和托管公司构建强化的CentOS Linux的经验,该公司为客户带来了企业基础设施、内核开发和开源软件的深厚技术知识。CloudLinux操作系统有超过200000个产品安装和4000个客户。它的用户包括Liquid Web、1&1和Dell。
Project Lenix将是RHEL 8(以及未来版本)的免费、开源、社区驱动、1:1二进制兼容的分支。对于CentOS用户,该公司承诺Lenix将提供一种不间断的方式来转换现有的CentOS服务器,并且完全没有停机时间或需要重新安装任何东西。该公司甚至声称你可以通过一个命令移植整个CentOS服务器舰队,而不需要重新安装或重新引导。这是一个大胆的主张。但是CloudLinux已经在它的商业Linux发行版上做到了这一点。如果公司说它能做到,我认为它能做到。
Lenix只是一个占位符名称。当社区聚集在一起——它正在Reddit上聚集——一个尚未成立的管理委员会将决定发行版的永久名称。如果一切顺利,第一个软件版本将出现在2021年第一季度。
相关报道:
集装箱化的OpenStack云?当然是说Mirantis
再见centos,你好,Rocky Linux
a, .nav-item > a, .dropdown-menu a');
allLinks.forEach(link => {
let href = link.getAttribute('href');
if (!href || href === '#' || href === 'javascript:;') return;
// 4. 提取菜单中的核心路径
// 例如 /articles.html -> articles
let cleanHref = href.replace(/^\/|\/$/g, '').replace(/\.(html|php)$/, '').toLowerCase();
let isMatch = false;
// 5. 精确匹配逻辑
if (cleanHref === 'index') {
// 只有当前是首页时,才高亮首页
if (cleanPath === 'index') isMatch = true;
} else {
// 如果当前路径完全等于菜单路径 (如 /articles 匹配 /articles)
// 或者当前路径以 "菜单路径/" 开头 (如 /articles/154 匹配 /articles)
// 或者当前路径包含 "菜单路径." (防某些带点号的特殊情况)
if (cleanPath === cleanHref || cleanPath.startsWith(cleanHref + '/')) {
isMatch = true;
}
}
// 6. 如果匹配成功,加上高亮
if (isMatch) {
link.classList.add('active');
// 如果匹配的是下拉菜单里的子项,顺便把它的父级分类也高亮
const parentNavItem = link.closest('.nav-item');
if (parentNavItem && !parentNavItem.classList.contains('active')) {
const parentLink = parentNavItem.querySelector('a');
if (parentLink) parentLink.classList.add('active');
}
}
});
})();
// ================= 移动端菜单逻辑 =================
const toggle = document.getElementById("menuToggle");
const nav = document.getElementById("navLinks");
// 1. 汉堡按钮:切换主菜单显示/隐藏
if (toggle && nav) {
toggle.addEventListener("click", function (e) {
e.stopPropagation();
const expanded = this.getAttribute("aria-expanded") === "true";
this.setAttribute("aria-expanded", String(!expanded));
nav.classList.toggle("active");
});
}
// 2. 处理下拉子菜单的展开/折叠
if (window.innerWidth <= 768) {
const navItems = document.querySelectorAll(".nav-item");
navItems.forEach((item) => {
const titleLink = item.querySelector("a");
const dropdownMenu = item.querySelector(".dropdown-menu");
const arrowIcon = item.querySelector(".arrow-icon");
if (titleLink && dropdownMenu) {
titleLink.addEventListener("click", function (e) {
e.preventDefault(); // 阻止链接跳转
e.stopPropagation();
// 手风琴效果:收起其他已展开的菜单
navItems.forEach((otherItem) => {
if (otherItem !== item) {
const otherMenu = otherItem.querySelector(".dropdown-menu");
const otherArrow = otherItem.querySelector(".arrow-icon");
if (otherMenu) otherMenu.classList.remove("active");
if (otherArrow) otherArrow.style.transform = "rotate(0)";
}
});
// 切换当前菜单
dropdownMenu.classList.toggle("active");
if (arrowIcon) {
arrowIcon.style.transform = dropdownMenu.classList.contains(
"active",
)
? "rotate(180deg)"
: "rotate(0)";
}
});
}
});
}
// 3. 点击普通菜单项后,自动关闭整个主菜单
if (nav) {
nav.querySelectorAll("a").forEach(function (link) {
if (!link.querySelector(".arrow-icon")) {
link.addEventListener("click", function () {
nav.classList.remove("active");
if (toggle) toggle.setAttribute("aria-expanded", "false");
});
}
});
}
// ================= 返回顶部逻辑 =================
(function () {
const backToTop = document.getElementById("backToTop");
window.addEventListener("scroll", function () {
if (window.scrollY > 300) {
backToTop.classList.add("show");
} else {
backToTop.classList.remove("show");
}
});
backToTop.addEventListener("click", function () {
window.scrollTo({ top: 0, behavior: "smooth" });
});
})();
// 多语言
document.addEventListener("DOMContentLoaded", function() {
let path = window.location.pathname;
let isEn = path.startsWith('/en/');
if (isEn) {
document.cookie = "my_lang=en; path=/; max-age=" + (30 * 24 * 3600);
} else {
document.cookie = "my_lang=zh; path=/; max-age=" + (30 * 24 * 3600);
}
// 【2. 首页记忆】如果访问的是首页(没带 en),但记忆是英文,前端自动跳去英文首页
if (!isEn && (path === '/' || path === '/index.html')) {
if (document.cookie.includes('my_lang=en')) {
window.location.replace('/en' + path);
return;
}
}
// 【3. 菜单不掉线】如果是英文页面,自动给菜单链接加上 /en/
if (isEn) {
document.querySelectorAll('a').forEach(function(link) {
let href = link.getAttribute('href');
// 站内链接,且没带 /en/
if (href && href.startsWith('/') && !href.startsWith('/en/') && !href.startsWith('http')) {
link.setAttribute('href', '/en' + href);
}
});
}
});