Articles of centos

Linux – 在多个屏幕上显示屏幕日志?

我有一个screen的问题。 基本上我希望每个屏幕screenlog.1一个日志,比如屏幕#1将会是screenlog.1 ,屏幕#2将会是screenlog.2 – 你会得到备忘录。 无论如何,会发生什么,当我启动屏幕使用: screen -SL screen1 ( -L参数是因为我需要强制它做日志)它只logging第一个屏幕,而不是其他2-5屏幕。 我已经尝试使用带有logfile参数的.screenrc文件,它的工作原理 – 但只是改变了screenlog.0的名称,这不是我想要的。 任何想法,我会怎么去呢? 其他信息:CentOS 6.3(64bit)。 屏幕版本4.00.03(FAU)23-Oct-06。

为什么我的DNS服务器不能转发?

我已经设置绑定像这样: // // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // options { listen-on port 53 { any; }; # listen-on-v6 port 53 { […]

如何获得CentOS Kernel Source以安装VirtualBox

TL; DR:正在运行的内核版本比VirtualBox在尝试安装时find的内核源要旧。 没有必要自己build造源代码。 最终的解决scheme是实际删除较新版本的内核源代码,并通过yum安装在uname -rfind的匹配版本。 历史: 当试图在新的CentOS服务器上安装VirtualBox-4.2时,我得到了以下内容: 内核2.6.32-358.6.2.el6.x86_64的内核头文件无法在/lib/modules/2.6.32-358.6.2.el6.x86_64/build或/lib/modules/2.6.32-358.6find。 2.el6.x86_64 /源。 所以在下面的CentOS上的说明我需要内核源码我试着得到源,我现在有~/rpmbuild/SOURCES/kernel-2.6.32-358.6.2.el6与2文件夹: linux-x和vanilla-x 。 我尝试再次安装VirtualBox,但它错误地找不到内核源,所以我也不得不build立这些符号链接: /lib/modules/2.6.32-358.6.2.el6.x86_64/build – > /usr/src/kernels/2.6.32-358.6.2.el6.x86_64 /usr/src/kernels/2.6.32-358.6 .2.el6.x86_64 – > /home/dirt/rpmbuild/BUILD/kernel-2.6.32-358.6.2.el6/vanilla-2.6.32-358.6.2.el6 但是,现在尝试安装VirtualBox时,出现了需要运行make的错误: /var/log/vbox-install.log Uninstalling modules from DKMS Attempting to install using DKMS Creating symlink /var/lib/dkms/vboxhost/4.2.18/source -> /usr/src/vboxhost-4.2.18 DKMS: add completed. Kernel preparation unnecessary for this kernel. Skipping… Building module: cleaning build area… make […]

彻底删除机密文件和文件夹

我要切换到一个新的VPS,我想从当前的VPS(以及MySQL内容)中彻底删除一些机密文件/文件夹。 服务器正在运行CENTOS 6。 顺便说一句,这不是 rm -rf 。 我想删除没有恢复的文件/文件夹(这意味着擦除所有的inode内容,而不是将其链接)。 有没有工具可以这样做?

SELinux:denied {执行}为pid = 2174 comm =“httpd”path =“/ etc / httpd / lib / libaprutil-1.so.0.5.3”

我有SELinux的问题。 setroubleshootbuild议启用mypol.pp与semodule -i mypol.pp所以Apache可以运行。 我运行build议的命令后,我不断得到: type=AVC msg=audit(1388119964.806:11): avc: denied { execute } for pid=2174 comm="httpd" path="/etc/httpd/lib/libaprutil-1.so.0.5.3" dev=md0 ino=2228931 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_config_t:s0 tclass=file **** Invalid AVC allowed in current policy *** type=AVC msg=audit(1388120085.792:29): avc: denied { execute } for pid=2298 comm="httpd" path="/etc/httpd/lib/libaprutil-1.so.0.5.3" dev=md0 ino=2228931 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_config_t:s0 tclass=file **** Invalid AVC allowed in current policy *** type=AVC msg=audit(1388120159.57:37): […]

如果我们只用input域名运行它,那么dnssec-keygen在Centos上的工作速度非常慢

从这个ISC BIND文章的例子: https://kb.isc.org/article/AA-00626/0/Inline-Signing-in-ISC-BIND-9.9.0-Examples.html $ dnssec-keygen example.com Generating key pair……………………+++++ ……………++++++ Kexample.com.+005+17262 $ dnssec-keygen -fk example.com Generating key pair……………………………….+++++ ………………………………………………..+++ Kexample.com.+005+44139 我在Centos 5(x64)上试过,发现dnssec-keygen的工作非常慢。 如果我添加另一个选项参数,它立即工作。 例: dnssec-keygen -r random.data example.com 它不会在Windows操作系统上发生。 试图debugging后,我发现它坚持了 RSA_generate_key_ex(rsa, key->key_size, e, &cb)) 在里面 lib\dns\opensslrsa_link.c 我试图发送邮件给国际学习中心,但他们不再回复。 你有什么想法?

openswan多个子网路由问题

我试图在CentOS 6.5(最后)上安装一个OpenSwan(2.6.32)来连接Amazon云上的远程VPC网关。 我得到了隧道。 但是,只有来自/到达在leftsubnets中定义的最后一个ip范围的stream量才被路由。 第一个短暂的工作(也许在第二个隧道之前),然后没有更多的路由。 以下是我的configuration。 conn aws-vpc leftsubnets={10.43.4.0/24 10.43.6.0/24} rightsubnet=10.43.7.0/24 auto=start left=206.191.2.xxx right=72.21.209.xxx rightid=72.21.209.xxx leftid=206.191.2.xxx leftsourceip=10.43.6.128 authby=secret ike=aes128-sha1;modp1024 phase2=esp phase2alg=aes128-sha1;modp1024 aggrmode=no ikelifetime=8h salifetime=1h dpddelay=10 dpdtimeout=40 dpdaction=restart type=tunnel forceencaps=yes 启动IPsec服务后: # service ipsec status IPsec running – pluto pid: 8601 pluto pid 8601 2 tunnels up some eroutes exist # ip xfrm policy src 10.43.6.0/24 […]

mod_security:具有相同ID的另一个规则

我在CentOS 6.5上安装了httpd 2.2.15(最less安装时没有cPanel)和modsecurity 2.8。 当我启动httpd我得到这个错误: Starting httpd: Syntax error on line 23 of /etc/httpd/conf.d/modsecurity.conf: ModSecurity: Found another rule with the same id 第23行是: "id:'200000',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=XML"

如何从Live CD启动后从shell安装CentOS 7.0?

我下载了CentOS 7.0的Gnome版本,并使用VirtualBox在VM中启动。 鼠标没有正常工作,所以当我尝试启动“安装到硬盘”任务时,什么都没有发生。 我重新启动了虚拟机,并在内核启动选项中添加了3,以启动到控制台而不是GUI桌面。 所以现在我在一个root shell提示符下,但是我可以启动什么程序来运行文本安装程序,以便我可以在磁盘上安装操作系统?

在CentOS上build立一个LVS

我有一个3节点(来自提供者的专用服务器)CentOS 7.x集群。 我正在尝试使用链接在这里设置LVS。 我的每台机器已经有3个额外的别名IP地址分配给它。 我想在这些机器之一上设置LVS。 我的问题是我应该如何在食人鱼configuration工具中使用虚拟IP(VIP)? 我可以为我希望LVS打开的机器select其中一个别名IP吗?