Articles of centos

如何连接linux / centos机器到中继端口

我试图连接Centos7机器到中继端口,它有多个vlan标记。 如何添加多个ips单个以太网或如何定义特定子网的vlan id。

如何在centos中禁止usbdisk?

在胜利,我们可以使用组策略,但是我的公司使用centos6.5 destop作为os。 我的老板想避免信息泄漏。 那么,有没有办法在centos中禁止usbdisk?

如何在/ etc / hosts中确定优先级?

由于在这里详细说明的原因,我尝试了将一个域的两个条目添加到CentOS-7服务器上的/etc/hosts文件中。 为了使一个软件能够愉快地运行,需要有一个条目: 192.168.1.z otherserver 但是,我真的希望该域名parsing为不同的IP: 10.wxy otherserver 我的理解(备份类似的问题,例如分配多个IP到主机文件中的1条目 )是第一个匹配的条目将被使用。 所以这个文件: 192.168.1.z otherserver 10.wxy otherserver 应该导致域名parsing为192.168.1.z ; 而这个文件: 10.wxy otherserver 192.168.1.z otherserver 应该导致它parsing为10.wxy 。 但是,无论我使用什么命令(以及添加的许多重复条目),域总是会parsing为192.168.1.z除非我完全删除该条目。 那么是否有任何方法可以包含这两行,但确保10.wxy优先?

www.softwarecollections.org已经closures – 是否有另外一个

我有一个基于centos的安装,从这个库安装php-56。 它看起来像这个网站已closures。 任何想法在哪里可以find镜子或更换? 它看起来像而不是寻找另一个镜子百胜只是不断打到同一个网站一遍又一遍: https://www.softwarecollections.org/repos/remi/php56more/epel-7-x86_64/repodata/repomd.xml:[Errno 12] https://www.softwarecollections.org/repos/remi/php56more/上的超时epel-7-x86_64 / repodata / repomd.xml :(28,'连接在30000毫秒后超时')尝试其他镜像。 https://www.softwarecollections.org/repos/remi/php56more/epel-7-x86_64/repodata/repomd.xml:[Errno 12] https://www.softwarecollections.org/repos/remi/php56more/上的超时epel-7-x86_64 / repodata / repomd.xml :(28,'30001毫秒后连接超时')尝试其他镜像。

禁用所有节点上的透明页面?

我将mongo基础结构从2.6升级到3.0(到3.4),当我通过本地mongo客户端login到第二个时,我看到一个关于透明巨大页面的警告。 经过一番研究,我决定实施他们的build议。 我要伪装init.d脚本mongobuild议在mongo服务器上禁用THP,但是后来我开始思考,是否应该禁用所有节点? 在其他节点(nginx,nfs)上禁用THP是否有任何退化?

鞋匠不能同步回购我补充说

我给补鞋匠添加了centos基地回购: cobbler repo add –arch=x86_64 –name=Centos-Base –mirror=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra 但运行的补鞋匠reposync失败: received on stderr: Traceback (most recent call last): File "/usr/bin/reposync", line 343, in <module> main() File "/usr/bin/reposync", line 175, in main my.doRepoSetup() File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 681, in doRepoSetup return self._getRepos(thisrepo, True) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 721, in _getRepos self._repos.doSetup(thisrepo) File "/usr/lib/python2.7/site-packages/yum/repos.py", line 157, in doSetup self.retrieveAllMD() File "/usr/lib/python2.7/site-packages/yum/repos.py", […]

如何在centos 6.9上安装docker-ce 17+?

我目前正在尝试在centOS 6.9服务器上安装docker-ce 17+,但是,在运行yum install docker-ce时出现以下错误: Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: libc.so.6(GLIBC_2.17)(64bit) Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: systemd-units Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: libseccomp.so.2()(64bit) Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: libsystemd.so.0()(64bit) Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: container-selinux >= 2.9 Error: Package: docker-ce-17.06.1.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit) 如果我运行它跳过破碎的国旗我仍然是相同的消息, 有没有人知道这个方法?

MySecureShell是使用CentOS服务器上的chrootpipe理SFTP用户的好方法吗?

我需要设置我的Centos 5.4服务器的SFTP与chroot访问只(或同等)。 使用RSSH的常规解决scheme在这里find: http ://www.cyberciti.biz/tips/howto-linux-unix-rssh-chroot-jail-setup.html似乎过度杀戮,如果我们想要pipe理多个用户.. 。 我发现项目MySecureShell似乎更容易安装和维护。 这是一个好的解决scheme吗? 有什么更好的吗? 谢谢!!

Linux`alternatives –config`没有用户input

我在写一个RHEL kickstart脚本,在我的%post中,我需要安装一个JRE。 基本上,当前的设置涉及到我需要在第一次启动后手动进入,并使用alternatives –config命令将新安装的JRE设置为默认值。 有没有办法让我把parameter passing给alternatives所以我不必手动select正确的JRE?

如何更改默认的sendmail SMTP错误代码,响应和/或DSN文本?

CentOS 5.x – SendMail 嗨,大家好, 我很好奇 – 是否有任何方法来定制sendmail中的STMP错误代码,响应文本和/或DSN正文文本? 如果是的话,这个存储在哪里? 谢谢, 麦克风