我正在VPS上设置一个CentOS 6服务器。 我之前和Apache一起工作过,但我从来没有处理过CentOS 6。 我猜这只是对的? sudo yum install httpd -y sudo yum install mod_ssl -y (然后使用chkconfig将其设置为在启动时运行并开始configuration/etc/httpd/conf下的详细信息。) 还有更多吗? 什么特别的我应该知道进去? 任何我应该警惕的问题?
我有一台Nagios机器,用来监视许多linux \ windows服务器。 我一个星期前开始在这里工作,并得到了一个在Nagios下单的任务。 作为我的命令的一部分,我不得不添加2个Linux服务器到Nagios。 我已经在两台机器上安装了nagios-plugins和nrpe,另外,我已经validation了端口5666已经打开,并且在两台服务器上侦听,我可以看到在ps -aux | grep nrpe中运行的nrpe。 运行插件的用户是root用户。 **编辑:nrpe被configuration为作为守护进程运行,所以xinetd在这里不起作用,另外,检查/ var / log / messages | grep nrpe返回: Sep 27 12:29:25 search-uk-1 nrpe[11708]: Starting up daemon Sep 27 12:29:25 search-uk-1 nrpe[11708]: Listening for connections on port 5666 Sep 27 12:29:25 search-uk-1 nrpe[11708]: Allowing connections from: avalon.office.incredimail.com,avalon.qa.incredimail.com,lu2.int.incredimail.com,lu2.ext.incredimail.com,206.82.140.185 Sep 27 12:30:54 search-uk-1 nrpe[11753]: Error: Could […]
当前设置 CentOS是一个Web,邮件(Postfix,Dovecot),FTP服务器和网关公共IP和私人IP(LAN网关)。 我们正计划实施外部防火墙,并将服务器连接到局域网 请指导configurationIPTables …无法接收邮件和外发邮件停留在后缀队列中,并延迟发送后… 服务器的本地IP地址是192.168.1.220 iptables -P INPUT DROP iptables -P FORWARD DROP iptables -P OUTPUT DROP # incoming HTTP iptables -A INPUT -i eth0 -p tcp –dport 80 -m state –state NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -o eth0 -p tcp –sport 80 -m state –state ESTABLISHED -j ACCEPT iptables -A INPUT -i […]
我与我的“testing”注册商的我的子域名指向我的服务器IP。 一切都连接,子域名工作,但它指向/ var / www / html而不是/ var / www / test 我重新启动Apache并检查日志。 我很困惑: <VirtualHost *:80> ServerName www.test.example.com ServerAlias test.example.com DocumentRoot "/var/www/test/" </VirtualHost> 请注意,这有它自己的conf文件,并且对/ var / www / test的权限是正确的 – 我还将一个带有虚拟文本的index.php放在这里。 没有运气 任何input赞赏!
我有一台运行CentOS 5.5的机器,我想升级到最新的5.x版本。 它正在freetype绊倒。 Freetype同时安装了i386和x86_64版本。 这是正常的,但x86_64版本更新(支持2.4版以支持其他一些软件包;我甚至没有32位机器来构buildi386版本)。 [sh-beta@localhost ~]$ yum list installed | grep freetype freetype.i386 2.2.1-28.el5_7.2 installed freetype.x86_64 2.4.8-1 installed [sh-beta@localhost ~]$ yum list updates | grep freetype freetype.i386 2.2.1-31.el5_8.1 updates [sh-beta@localhost ~]$ sudo yum -y update freetype.i386 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.cicku.me * extras: mirrors.sonic.net * updates: centos.sonn.com […]
可能重复: 如何在启动时运行shell脚本(启动) 我有.sh脚本来运行我的游戏服务器与单声道。 我需要在启动时运行这个命令 sh script.sh start 怎么样?
使用CentOS 6,以root身份login到MySQL,input命令: create user 'user123' identified by 'pass123'; 工作正常。 但是,当我尝试给这个用户的super user privileges : grant all on *.* to 'user123' identified by 'pass123'; 我得到的错误: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 然后 select * from mysql.user; 显示根在所有列中都有Y,所以应该拥有所有权限。 如果有人能帮我find为什么root不能授予权限,我将不胜感激,因为我不明白为什么它不会工作。 谢谢
我编辑了文件/etc/rc.d/rc.local并添加了以下几行代码,以便在启动时通过sshfs挂载远程目录: su user -c "/usr/bin/sshfs -o idmap=user -o reconnect -o allow_other -o uid=500 -o gid=500 user@remote:/home/shares/allusers /home/user/mnt" 问题是没有在启动时挂载目录,但是当我在login之后手动执行这个命令,所有的工作都按预期工作,这个目录就被挂载了。 有什么build议么?
只是想知道如何在我的URL的末尾使用Mod_Rewrite添加尾部的斜线? 这是我的.htaccess文件目前: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]*)$ index.php?pageName=$1 我的url显示如下: WWWW。****。com /网页 我希望它显示如下: WWWW。****。com /网页/ 该URL在内部持有GET请求,但我希望它看起来像一个真正的目录。
我从Ubuntu转移到CentOS,现在我有一个问题从PHP运行adb 。 我试图执行shell_exec("/path/to/adb devices"); 我得到: ADB server didn't ACK failed to start daemon error cannot connect to daemon daemon not running. starting it now on port 5037 当然, adb不能启动,因为它已经在运行并监听端口5037,如果我尝试以root身份运行adb devices ,或者从命令行运行常规用户,它将返回所有连接的设备。 此configuration以前与Ubuntu一起工作。 有什么不同? 有什么build议么?