服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我一直在检查这个前面的问题Apache虚拟主机SSL背后反向代理似乎是我所寻找的相似。 主要的区别是两个: 我没有使用SSL(现在) DataPower是Apache HTTP服务器之前的反向代理。 我在Apache上有以下configuration: <VirtualHost *:7777> ServerName testsite.example.com Port 80 ServerAdmin [email protected] RewriteEngine On RewriteOptions inherit </VirtualHost> <VirtualHost *:7777> ServerName testserver-01.example.com Port 7777 ServerAdmin [email protected] RewriteEngine On RewriteOptions inherit </VirtualHost> <VirtualHost *:7777> ServerName testsite.example.com Port 7777 ServerAdmin [email protected] RewriteEngine On RewriteOptions inherit </VirtualHost> <VirtualHost *:7777> ServerName testserver-02.example.com Port 7777 ServerAdmin [email protected] RewriteEngine On […]
我一直在嘲弄我的头一阵子,并放弃了试图找出答案。 我对路由和iptables的知识太有限了,看起来似乎不太明白。 我在我的openwrt路由器上configuration了一个分离的路由情况。 我的networking中有一台计算机使用VPN服务连接到互联网(192.168.10.160,tun1)。 从我的家庭networking,我可以通过正常的IP访问这台计算机。 每当我在路上,我可以通过VPN服务器(tun0)访问我的家庭networking。 我可以访问家庭networking上的所有计算机,除了configuration为分离路由的计算机之外。 无论我尝试什么,我都无法将tun0的stream量转发到tun1。 有谁知道这是如何工作的? 在openvpn中分割路由向上的脚本: vpn_route_table=10 vpn_inside_net=192.168.10.160/32 iptables -t nat -A delegate_prerouting -i $dev -j zone_wan_prerouting iptables -t nat -A delegate_postrouting -o $dev -j zone_wan_postrouting ip route flush table $vpn_route_table ip route add default via $ifconfig_remote table $vpn_route_table ip rule add from $vpn_inside_net table $vpn_route_table 路由表: # # reserved values […]
我们的安全系统疯狂地警告我们,数百个外部DNS查询和响应正在parsing像127.0.0.1这样的地址,有时候是0.0.0.0来源于我们内部networking的请求。 我应该忽略这个吗? 即使公共NSLOOKUP实用程序也显示相同的结果。
我在Windows Server 2008 R2 SP1上运行IIS7.5。 一个多月前,我做了PHP(v5.5.11),MySQL和phpMyAdmin接口的通用安装,并且它都很好。 有一天我开始玩WordPress的网站,这一切都变得很难看。 现在,在涉及PHP的任何网站上,我得到“500 – 内部服务器错误”(包括phpMyAdmin)或浏览器永远坐在那里“加载”,但没有收到任何数据,就好像它仍在尝试parsingURL。 我已经尝试安装Visual Studio 2012更新4的Visual C ++可再发行组件的32位版本,如下所示: 全新安装的IIS和PHP 500错误 我一整天都在扯掉我的头发。 任何帮助将非常感激!
我不得不经常通过ilo – ssh访问服务器,没有Web界面。 我的意思是能够通过这个工具来备份服务器吗? 或者像ipmtool一样利用别人能够做的事情? 同样,当服务器卡住启动,我怎么能从这个接口告诉? 到目前为止,我只能打开/closures电源,不能从服务器获得任何有用的信息。 似乎也有各种各样的语法,在那里我可以进入map1,另一个与admin1。 另外,虽然有一个权力的命令,我没有意识到的状态选项。 我可以得到build议,或者find正确的方向来找出这些信息吗?
我运行了vnstat -d和vnstat -m,并将结果与vnstat –dump进行了比较。 每日和每月之间的值closures几个字节。 这是预期的吗? 我想上个月的数据和昨天的数据不会改变,因为它不logging那些时间。 例如,我从vnstat -m(rx / tx格式)的月度输出中, 27.21 | 7.96 和vnstat –dump 27.214 | 7.982 由于数字接近,我可以看到vnstat -m在rx上舍去,但我不明白tx的差异。 任何想法发生了什么?
我在Ubuntu的pyffmpeg安装失败。 Cython安装似乎是正确的: $ sudo python setup.py install … Adding Cython 0.22.1 to easy-install.pth file Installing cython script to /usr/local/bin Installing cygdb script to /usr/local/bin Installing cythonize script to /usr/local/bin Installed /usr/local/lib/python2.7/dist-packages/Cython-0.22.1-py2.7-linux-x86_64.egg Processing dependencies for Cython==0.22.1 Finished processing dependencies for Cython==0.22.1 我的ffmpeg在: /usr/bin/ffmpeg 所以,我相应地改变了pyffmpeg的setup.py 。 但是,试图安装pyffmpeg会产生这些Cython错误: $ sudo python setup.py install [sudo] password for openstack: Remember: […]
我有一些需要使用更新版本的PHP的脚本,运行Debian 6的PHP 5.3.3支持,我发现我可以使用https://www.dotdeb.org/instructions/ packages安装php 5.4。 这工作,它更新我的PHP到一个更新的版本,唯一的问题是,当安装完成的Apache现在下载PHP文件,而不是呈现它,我一直蹂躏谷歌和stackoverflow和servefault现在几个小时,我找不到解决scheme。 我猜这与Apache的configuration有关,但我不知道该怎么做。 tom@vps:~$ dpkg –list |grep -E '(apache)|(php5-)' ii apache2 2.2.16-6+squeeze12 Apache HTTP Server metapackage ii apache2-doc 2.2.16-6+squeeze12 Apache HTTP Server documentation ii apache2-mpm-prefork 2.2.16-6+squeeze12 Apache HTTP Server – traditional non-threaded model ii apache2-utils 2.2.16-6+squeeze12 utilit y programs for webservers ii apache2.2-bin 2.2.16-6+squeeze12 Apache HTTP Server common binary files ii […]
通常,我喜欢在所有Ubuntu 14.04服务器( security和updates )中启用unattended-upgrades 。 我的问题的相关configuration行如下: // Do automatic removal of new unused dependencies after the upgrade // (equivalent to apt-get autoremove) Unattended-Upgrade::Remove-Unused-Dependencies "true"; 但是,当我检查我的服务器时,可以看到还有很多旧的内核。 例: $ apt-get autoremove … The following packages will be REMOVED: linux-headers-3.13.0-52 linux-headers-3.13.0-52-generic linux-headers-3.13.0-57 linux-headers-3.13.0-57-generic linux-headers-3.13.0-58 linux-headers-3.13.0-58-generic linux-headers-3.13.0-59 linux-headers-3.13.0-59-generic linux-image-3.13.0-52-generic linux-image-3.13.0-57-generic linux-image-3.13.0-58-generic linux-image-3.13.0-59-generic linux-image-extra-3.13.0-52-generic linux-image-extra-3.13.0-57-generic linux-image-extra-3.13.0-58-generic linux-image-extra-3.13.0-59-generic 这需要很多/boot空间,我个人没有任何需要保留旧的内核。 我认为所提到的configuration线会照顾到这一点,但事实并非如此。 为了清理旧的内核,需要做些什么?
我们使用Nginx作为负载平衡器。 Nginx的IP地址为10.110.0.200,主机地址为10.110.3.20 | 10.110.3.21 这是configuration文件: upstream test1 { server 10.110.3.20:xxxx; } server { listen 10.110.0.200:80; server_name test1.xyx.com; location / { proxy_set_header Host $host; proxy_pass http://test1; } } 我们收到错误消息 * 798上行超时(110:连接超时)连接上行,客户端:10.100.88.210 任何线索? 当我们curl的时候 curl -v http://10.110.3.20:xxxx *无法连接到主机*closures连接#0curl:(7)无法连接到主机