服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我有运行在HyperV下的RHEL6虚拟机。 它有很多重要的软件安装,但没有令人窒息的工作量(〜10%的CPU使用)。 最近出乎意料地显示了不同的I / O错误: ps aux | grep httpd -bash: /bin/ps: Input/output error -bash: /bin/grep: Input/output error 我试图通过运行fsck修复驱动器,但我有以下错误: /dev/mapper/vg_vm-lv_root: recovering journal fsck.ext4: Bad magic number in super-block while trying to re-opoen /dev/mapper/vg_vm-lv_root Warning… fsck.ext4 for device /dev/mapper/vg_vm-lv_root exited with signal 11. 现在它正在重新启动,意外显示以下错误: SRAT: Hotplug area too small offline device ..MP-BIOS bug: 8254 timer not […]
今天,我们的VPN停止接受连接,客户端返回错误807.服务器上的日志中没有任何与VPN失败有关的内容,或者客户端今天甚至尝试连接。 任何想法如何解决这个问题? 如果您需要更多信息,请告诉我。 服务器运行的是Windows SBS 2011 Essentials,尽pipe我对服务器的所有其他问题都可以使用针对Windows Server 2008 R2的build议进行修复。
我想使用mysqldump与-Tfunction,并以某种方式压缩它,以节省写入未压缩的文件到磁盘(这是一个非常大的数据库)。 mysqldump -T/directory databasename 这只是将所有文件写入/目录,但我想直接发送到.tar.gz存档。 任何想法如何?
我使用以下procmailrc与fetchmail: PATH=/bin:/usr/bin:/usr/local/bin VERBOSE=off LOGFILE=$HOME/.procmaillog DEFAULT=$HOME/mail/ MAILDIR=$HOME/mail/ # Recipes below this comment: :0: * ^(To|From):.*[email protected] QObject/ :0: * ^(To|From|Reply-To):.*[email protected] BlackFlame/ 因此,它生成邮箱(与cur,tmp,新)文件夹~/mail和~/mail/QObject 。 现在,我用mutt,期待它显示我所有的信息,以及两个分开的文件夹。 但是我只看到默认邮箱。 这是我的muttrc: set realname = "illusionoflife" set from = "[email protected]" set use_from = yes set envelope_from ="yes" # Use a signature set signature="~/.signature" # Use msmtp rather than sendmail. Check that # the […]
我已经设置了一系列Web应用程序,出于安全目的,这些应用程序只能通过本地主机直接访问,每个服务都连接到不同的端口。 为了使这些应用程序可以在外部访问,正在通过apache设置一个反向代理。 它一直运行顺利,直到今天添加另一个应用程序,这是在初始访问后转发(我不知道是通过什么方法,但我没有访问正在做redirect的代码)以“proxyHost / bar /“redirect到”proxyHost / search /“而不是”proxyHost / bar / search /“ 我已经查看了我的脚本多次设置代理,并尝试了不同的方法,我已经阅读了关于在线和没有为我工作。 我现在求助于你们,如果这是一个基本的问题,或者在我的configuration中有一个明显的缺陷,我非常抱歉。 我对Apache很新。 谢谢! 这是当前configuration: ProxyRequests Off ProxyPreserveHost On ProxyHTMLEnable On <Proxy *> Order allow,deny Allow from all </Proxy> ProxyPass /foo/ http://localhost:1234/ ProxyHTMLURLMap http://localhost:1234 /foo <Location /foo/> ProxyPassReverse http://localhost:1234/ ProxyHTMLURLMap / /foo/ ProxyHTMLURLMap /foo /foo </Location> ProxyPass /bar/ http://localhost:5678/search ProxyHTMLURLMap http://localhost:5678/ […]
我已经testing了微软TMG 2010来负载平衡我的两条DSL线,它工作正常。 我可以期待使用较便宜的防火墙设备可以获得相同级别的结果和安全性吗?
我试图用Apache 2.4处理程序编译PHP 5.4,因为它不是官方可用的(我知道apachelounge.com非官方提供,但我不需要它,我需要自己编译它)。 我在PHP的deps文件夹中包含了必需的Apache include / lib文件夹,在这里应用了提交的补丁: https ://bugs.php.net/bug.php?id=62267而且我获得了成功的构build。 但不幸的是,它没有为我工作(Apache未启动),我不断收到事件日志中的以下错误: >>> httpd.exe: Syntax error on line 175 of /path/to/httpd.conf: Module "sapi\\apache2handler\\mod_php5.c" is not compatible with this version . >>> of Apache (found 20110619, need 20120211). Please contact the vendor for the correct version. httpd.conf第175行: LoadModule php5_module ../../php/php-5.4.5/php5apache2_4.dll 它出什么问题了? 有什么build议么??
我有nginx作为前端代理服务器,所有stream量都经过了,在同一台机器上,我需要运行PHP,所以快速简单的方法是运行Apache。 我只在nginx上启用SSL,所以事情正在与HTTPS运行,是否安全? 在SSL上运行似乎很奇怪,资源效率低下。
我想阻止相同的重复请求到我的网站。 例如,有人点击了“刷新”button3次,所以我希望跟随该用户的相同请求被自动阻止。 我知道我可以用PHP或任何服务器端编程语言来做到这一点,但是有没有独立于网站的“便携式”解决scheme,如Apache2configuration或iptables规则? 还有其他方法可以保护这种基本的保护吗?
请注意: markk@ip-10-203-82-54:~/work/gl$ uname -a Linux ip-10-203-82-54 3.2.0-25-virtual #40-Ubuntu SMP Wed May 23 22:20:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux markk@ip-10-203-82-54:~/work/gl$ ls -la /etc/authbind/byport/80 -rwxrwx— 1 markk markk 0 Aug 16 10:00 /etc/authbind/byport/80 markk@ip-10-203-82-54:~/work/gl$ authbind /usr/bin/java -Dcom.shunra.gl.ports=80 -jar server.jar java.net.SocketException: Permission denied at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77) at org.simpleframework.transport.connect.Acceptor.bind(Acceptor.java:171) at org.simpleframework.transport.connect.Acceptor.<init>(Acceptor.java:88) at org.simpleframework.transport.connect.Listener.<init>(Listener.java:78) at […]