查看“编译机软件配置”的源代码
←
编译机软件配置
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看和复制此页面的源代码。
==lilac== 见 [[lilac]]。 ==archrepo2== ==nginx== ==sshd== *监听端口:22、8122 *iptables 规则(配置于 <code>/etc/rc.local</code>中):<syntaxhighlight lang="bash"> iptables -I INPUT -p tcp --dport 22 -i eno1 -m state --state NEW -m recent --set iptables -I INPUT -p tcp --dport 22 -i eno1 -m state --state NEW -m recent --update --seconds 60 --hitcount 6 -j DROP </syntaxhighlight> ==Postfix== ==shell 环境变量== <code>/etc/profile.d/build.sh</code>:<syntaxhighlight lang="bash"> NPROC="$(nproc)" export MAKEFLAGS="-j$NPROC" unset NPROC if groups | grep -q "\<pkg\>"; then export PACKAGER="$USER <$USER@build.archlinuxcn.org>" fi </syntaxhighlight><code>/etc/sudoers</code>:<syntaxhighlight lang="text"> Defaults env_keep += "PACKAGER MAKEFLAGS" </syntaxhighlight> == cgroups == 内核命令行添加<code>systemd.unified_cgroup_hierarchy=1</code>使用 cgroups v2。 为每个用户设置 CPU 权重<code>/etc/systemd/system/user-.slice.d/resources.conf</code>:<syntaxhighlight lang="ini"> [Slice] CPUWeight=100 </syntaxhighlight>为 dcron.service 设置 CPU 权重 <code>/etc/systemd/system/dcron.service.d/resources.conf</code>:<syntaxhighlight lang="ini"> [Service] CPUWeight=100 </syntaxhighlight> ==其它辅助性服务== ===collectd=== ===graphite-api=== ===carbon=== ===grafana===
返回至
编译机软件配置
。
导航菜单
个人工具
登录
GitHub 登录
名字空间
页面
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
所有页面
MediaWiki 帮助
工具
链入页面
相关更改
特殊页面
页面信息