Articles of centos6

哪个日志文件存放在CentOS服务器的物理控制台上出现的错误?

在CentOS 6服务器上,有时会在物理连接到服务器的显示器上的login提示之上显示消息(错误,警告)。 我似乎无法find这些消息所在的日志文件(/ var / log /?),所以要查看它们的唯一方法是打开连接到服务器的显示器。 有没有办法将它们发送到日志文件,所以我可以通过SSH等等看到它们? 他们是否出现在屏幕上,因为他们没有设置日志文件?

如何使用apache2在CentOs 6.2上为域设置虚拟主机?

第一次在CentOs的LAMP和域设置。 以前的经验是在Ubuntu中。 在本地ISP的专用服务器上运行。 他们安装了默认的CentOs 6.2并将我的域redirect到服务器。 Ping mydomain.com可以正常工作以达到服务器的IP。 我已经使用这个howto解释在盒子上成功安装了LAMP。 一切似乎都很好。 我编辑了/ etc / hosts: 127.0.0.1 mydomain.com 我还编辑了/etc/httpd/conf/httpd.conf,并在文件末尾添加了以下内容,同时保持其余的默认值: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /var/www/html ServerName localhost </VirtualHost> <VirtualHost *:80> ServerName mydomain.com ServerAlias www.mydomain.com ServerAdmin [email protected] DocumentRoot /var/www/html/mydomain.com <Directory "/var/www/html/mydomain.com"> Options Includes FollowSymLinks AllowOverride All allow from all </Directory> ErrorLog /var/www/logs/mydopmain.com.default.log </VirtualHost> 而我也跑了 chmod -R apache:apache /var/www/html 作为最后的尝试去做事情。 […]

ant螺丝我的crontab?

我的系统是CentOS 6.3,我注意到我的/etc/cron.daily没有在凌晨4点01分执行,相反,这些脚本随机执行。 我search,似乎是“anacron”,搞砸了我的crontab。 例如,这些是来自/ var / log / cron的日志文件的一部分: Oct 1 04:01:01 xfiles anacron[7350]: Anacron started on 2012-10-01 Oct 1 04:01:01 xfiles anacron[7350]: Will run job `cron.daily' in 18 min. Oct 1 04:01:01 xfiles anacron[7350]: Jobs will be executed sequentially Oct 1 04:01:01 xfiles run-parts(/etc/cron.hourly)[7352]: finished 0anacron Oct 1 04:19:01 xfiles anacron[7350]: Job `cron.daily' started […]

无法在CentOS 6.3上ping或外部IP或域名?

我在我的机器上安装了新的CentOS 6.3。 互联网根本不工作。 如何能ping我的路由器和其他连接在局域网上的电脑。 我search了各种论坛,但都是徒劳的。 没有解决scheme为我工作:( 这里是关于我的系统的一些信息 – 输出“ ping 192.168.1.1 ” PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.615 ms — 192.168.1.1 ping statistics — 3 packets transmitted, 3 received, 0% packet loss, time 2441ms rtt min/avg/max/mdev = 0.301/0.476/0.615/0.130 ms 输出“ ping 192.168.1.2 ” PING 192.168.1.2 (192.168.1.2) 56(84) […]

在CentOS 6.3上从PHP 5.3更新到5.4,同时保持Plesk

我需要更新服务器的PHP版本,但是当我尝试删除旧的PHP通过yum安装新的PHP 5.4它想要删除我想保留的整个Plesk套件。 我按照这个指导https://serverfault.com/a/461418/155005,但它没有改变任何东西。 有没有办法保持plesk和更新php? 更新:如果我想安装PHP 5.4,然后删除PHP 5.3,两个php-common软件包之间显示冲突。

$ HOME在Centos 6.3中设置

Centos 6.3中设置的$ HOME环境variables是什么? 我看过 / etc / profile文件 /etc/profile.d/* 在/ etc / bashrc中 在〜/ .bash_profile 在〜/ .bashrc 此外,/ etc / passwd中倒数第二列具有正确的主目录。 SELinux被禁用,fwiw。

傀儡DNS查询的最低udp源端口是什么?

在CentOS 6.4和6.3上,我看到puppet经常使用低于32768的端口。这与内核分配端口的设置是相反的: cat /proc/sys/net/ipv4/ip_local_port_range 32768 61000 我的无状态防火墙阻止示例木偶进程: ruby 24488 root 3u IPv4 1844198 0t0 UDP 172.16.10.156:13346->172.16.10.2:domain 我想解决这个问题,以便能够在无状态防火墙中select一个不需要“世界可写”的范围。 编辑:木偶版本3.1.1和Ruby 1.8.7

永久禁用SeLinux

我正在运行带Cobbler服务的virtualbox CentOS 6.4(64位)服务器。 其中一个步骤是禁用SeLinux,以防止service cobblers start补丁程序时发生python错误。 如果我运行setenforce 0一切正常,但每次服务器重新启动时都必须运行该命令。 我尝试更改/etc/sysconfig/selinux SELINUX=disabled ,也是SELINUX=permissive然后重新启动,但sestatus不断显示,centOS启动selinux运行。 我需要更改一个不同的configuration文件,或者我不正确地configuration了selinux文件吗? Youtubevideo显示selinuxconfiguration文件,重新启动,然后检查状态

1024端口上的连接限制

我在CentOS盒子上运行shoutcast v1stream媒体服务器。 当我以root用户身份启动服务器时,我可以stream畅地访问1200-1300个客户端。 但是,当我运行服务器作为不同的用户(ccuser)shoutcast服务器冻结时,连接达到~1019东西。 我已经编辑了/etc/security/limits.conf文件,同时为root和ccuser设置了适当的设置,并且在重启后,ulimit -a确认: root@nsxxxxxx ~/monitoring # su – ccuser -bash-4.1$ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 515170 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) […]

在Xen 6.0上安装CentOS 6.4:安装挂在“切换到clocksource hyperv_clocksource”

当我尝试在Citrix XenServer 6.0上安装CentOS 6.4时,安装后,安装挂在“切换到clocksource hyperv_clocksource” 我在同一台服务器上安装了CentOS 6.0,但没有这个问题。 任何build议是非常感谢,并提前感谢