背景 我们只是将我们的网站迁移到新的服务器上。 旧的和新的服务器都运行/运行CentOS 5.5和Apache 1.3.33。 但是,迁移后,我们无法从我们网站上托pipe的Microsoft Office系列产品下载任何文件。 虽然FTP传输成功,但HTTP请求失败。 以下是我在Firebug中看到的消息: 400 No Host matches server name dairymgt.info 尝试解决scheme 我和客户服务人员交谈过,他们build议我将相应的MIMEtypes添加到.htaccess文件中。 我继续前进,并将以下内容(如此处所示 )添加到存在于我们网站根目录的.htaccess文件中: AddType application/vnd.ms-word.document.macroEnabled.12 docm AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document docx AddType application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx AddType application/vnd.ms-powerpoint.template.macroEnabled.12 potm AddType application/vnd.openxmlformats-officedocument.presentationml.template potx AddType application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam AddType application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx AddType application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm AddType application/vnd.openxmlformats-officedocument.presentationml.presentation pptx AddType application/vnd.ms-excel.addin.macroEnabled.12 xlam AddType application/vnd.ms-excel.sheet.binary.macroEnabled.12 […]
目前我的procmail食谱如下: FROM_=`formail -c -x"From "| awk '{ print $1 }'` SUBJ_=`formail -c -x"Subject:" | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'` :0 *^Subject:.*(60) { :0 fwh | formail | (echo "$FROM_"; echo "$SUBJ_";) :0 fwb | formail -I "" :0 myemail/ } 我的procmail配方只会筛选出主题中编号为“60”的电子邮件。 之后,formail将执行取出发件人的电子邮件地址及其主题,然后将其内容转发到“myemail”目录。 有人可以帮助我构build一个procmail配方,以过滤收到的邮件到不同的目录,如果有多个“60”的科目逗号分隔? (例如,主题为6010,6011,6012的电子邮件,6010将进入6010文件夹,6011将进入6011等等。) 主题中的数字是电话号码,可以有大量的不同的,所以列举所有可能的比赛是不是一个真正的select。
我试图在我的Cent OS 5.2中打开端口843 ,我添加了以下行etc\sysconfig\iptables : -A INPUT -p tcp –dport 843 -j ACCEPT 然后更新我的iptables服务。 我需要通过sudo node index.js命令来监听由root用户运行的node.js应用程序中的那个端口,但是当我尝试通过该端口build立连接时仍然会出现forbidden port错误。 这是我通过运行sudo iptables -L -v : Chain INPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 2811 238K ACCEPT tcp — any any anywhere anywhere tcp dpt:http 112 6224 ACCEPT tcp […]
我有一台运行CentOS 5.8的机器。 通过使用以下内容创build/etc/modprobe.d/disable-ipv6文件来禁用IPv6: options ipv6 disable=1 删除文件并重新启动机器应该重新启用IPv6。 有没有办法启用IPv6而无需重新启动? 附加信息: 我find了一些echo 0 > /proc/sys/net/ipv6/conf/interface/disable_ipv6 ,但是/proc/sys/net/ipv6在这台机器上不存在。 sysctl没有显示IPv6: # sysctl -a | grep -i ipv6 | wc -l 0 ipv6内核模块被加载: #lsmod | grep ipv6 ipv6 437857 1 cnic 试图删除它会引发错误: # modprobe -vnr ipv6 FATAL: Module ipv6 is in use. # modprobe –show-depends ipv6 insmod /lib/modules/2.6.18-308.13.1.el5/kernel/crypto/crypto_api.ko insmod /lib/modules/2.6.18-308.13.1.el5/kernel/net/xfrm/xfrm_nalgo.ko insmod […]
我正在尝试使用Mono托pipeASP.NET Web窗体应用程序。 我已将Mono 3.0.7和XSP 2.10.2从源代码安装到/ usr / bin目录中。 然后我用下面的命令启动了单声道服务器: fastcgi-mono-server4 /applications=www.example.com:/:/var/www/example/ /socket=tcp:127.0.0.1:9000 /verbose=True /printlog=True 但是,当我浏览到http://www.example.com ,出现502错误网关错误。 我看到logging了以下错误: [2014-11-10 15:30:01Z] Error Failed to process connection. Reason: Could not load file or assembly 'fastcgi-mono-server4, Version=2.10.2.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified. 那么为什么它找不到文件呢? 我尝试添加/usr/bin到我的MONO_PATH ,但是没有帮助。 这是我的nginxconfiguration: server { listen 80; […]
我有一个运行CentOS 5.11的networking设备。 它看到了相当数量的stream量(道歉,我没有具体的数字,但我知道它正在使用)。 出于某种原因,我看到ifconfig错误计数缓慢递增。 eth0 Link encap:Ethernet HWaddr AA:BB:CC:DD:EE:FF inet addr:1.1.1.1 Bcast:1.1.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:202723544 errors:0 dropped:4959 overruns:0 frame:37 TX packets:158354057 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4261083782 (3.9 GiB) TX bytes:1224803677 (1.1 GiB) Interrupt:83 Memory:f6bf0000-f6c00000 (IP和MAC被重新命名,以保护无辜)。 丢弃的数量每天增加大约90-100帧。 这是否表明有任何问题? 这是“正常”吗? 另外, frame:37是什么意思frame:37是什么意思?
我有centos 5。 我尝试了iptables -L,并提供以下输出 Chain INPUT (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all — anywhere anywhere Chain FORWARD (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all — anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain RH-Firewall-1-INPUT (2 references) target prot opt source destination ACCEPT all — anywhere anywhere […]
我正在使用chkroot来扫描我的系统,它给了我权限被拒绝的错误 /proc/23746/fd/0: Permission denied /proc/23746/fd/1: Permission denied /proc/23746/fd/2: Permission denied /proc/23746/fd/3: Permission denied /proc/23746/fd/5: Permission denied /proc/23746/fd/8: Permission denied /proc/23746/fd/11: Permission denied [/proc/23746/fd]# ls -liah /bin/ls: cannot read symbolic link 0: Permission denied /bin/ls: cannot read symbolic link 1: Permission denied /bin/ls: cannot read symbolic link 2: Permission denied /bin/ls: cannot read symbolic link 3: […]
我有一个在端口80上运行Apache的CentOS 5.5服务器以及其他一些应用程序。 所有工作正常,直到我由于某种原因需要重新启动httpd进程。 这样做返回: sudo /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs 首先,我想可能httpd已经被冻结,并仍在运行,但事实并非如此。 所以我跑了netstat找出什么是使用端口80: sudo netstat -tlp Active Internet connections (only […]
我希望能够通过OpenLDAPpipe理我所有的用户login。 我正在使用Centos 5.3,OpenSSH 4.3p2-42和OpenLDAP 2.3.43。 我已经安装了GOsa2。 是否有一个GOsa插件来pipe理LDAP中的SSH密钥? 我遇到了openssh-lpk补丁,但它适用于较新的OpenSSH。 我不想破坏我的服务器。 这个补丁是否有可用的yum版本库? 我甚至需要它吗? 我怎样才能让OpenSSH查询LDAP服务器的密钥? 我可以configurationPAM来做这个吗? build议表示赞赏。 谢谢