服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
目前正在做一个最低版本的PHP版本检查,我遇到一些服务器,说他们的PHP版本(检查phpversion )是: PHP 5.2.0-8+etch16 由于我是一个Windows的家伙,没有Linux / PHP的家伙,我没有find-8和+etch16部分有意义的结果。 我的两个问题是: -8是什么意思? +etch16是什么意思? (我假设在我上面的例子中,实际安装的PHP版本是5.2.0 )。
我已经创build了一个PHP脚本,通常在1分钟内统计一次IP地址访问我们的网站多less次。 后来我创build了一个shell脚本顶部禁止这些IP地址访问端口80谁超过X的命中数。 具体如下: BLOCKDB=/tmp/ip.blocked IPS=$(grep -Ev "^#" $BLOCKDB) echo IPS for i in $IPS do /sbin/iptables -A INPUT -p tcp –destination-port 80 -s $i -j DROP /sbin/service iptables save /sbin/service iptables restart echo "Block ALL INPUT from " $i " net DROPPED." done 什么是必需的 我想禁止这些IP地址在一定的时间内说一天(86400秒)或更多,之后,它再次打开他们的80端口? 我如何发送邮件给自己,即禁止访问foo.com的x个IP地址? 有没有什么方法可以提高我的脚本,这样它只会从/tmp/ip.blocked读取那些不通过脚本(iptables)禁止的IP地址? 请指教。
我使用nginx 1.2.6运行Ubuntu Desktop 12.04。 PHP是PHP-FPM 5.4.9。 这是我的nginx.conf的相关部分: http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { server_name testapp.com; root /www/app/www/; index index.php index.html index.htm; location ~ \.php$ { fastcgi_intercept_errors on; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } server { listen 80 default_server; root /www index index.html index.php; location […]
IIS有几个网站: domain1.com a.domain2.com b.domain2.com 还有一个TomCat正在运行 localhost:8087 挑战是如何将TomCat外部公开为 b.domain2.com 我做了什么: 在IIS中的ARR中启用代理 在b.domain2.com上添加了反向代理URL重写规则 <rewrite> <rules> <rule name="ReverseProxyInboundRule1" stopProcessing="true"> <match url="(.*)" /> <action type="Rewrite" url="http://localhost:8087/{R:1}" /> </rule> </rules> <outboundRules> <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1" > <match filterByTags="A, Form, Img" pattern="^http(s)?://localhost:8087/(.*)" /> <action type="Rewrite" value="http{R:1}://femiscan.a2itsolutionsllc.com/{R:2}" /> </rule> <preConditions> <preCondition name="ResponseIsHtml1"> <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /> </preCondition> </preConditions> </outboundRules> </rewrite> 我所看到的: 如果我导航到本地 http://b.domain2.com […]
任何人都可以告诉我在ESXi 5.1中这意味着什么? SATP VMW_SATP_LOCAL does not support device configuration 我用googlesearch了很多结果,但是到目前为止,所有包含string的页面都在讨论其他问题。 存储arrays是HDS HUS-VM,主机是HP b460c G8刀片,采用柔性结构和柔性结构VC,我正在debugging过程中,希望能够在右脚启动 – 即无错误和警告! naa.600508b1001c56ee3d70da65f071da23 Device Display Name: HP Serial Attached SCSI Disk (naa.600508b1001c56ee3d70da65f071da23) Storage Array Type: VMW_SATP_LOCAL Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device configuration. Path Selection Policy: VMW_PSP_FIXED Path Selection Policy Device Config: {preferred=vmhba0:C0:T0:L1;current=vmhba0:C0:T0:L1} Path Selection Policy […]
我已经将我的网站分成不同的configuration文件,以保持更有条理。 这也使我能够取出单独的configuration文件,并使网站不可用。 我的每个站点的configuration文件如下所示: server { listen 80; server_name site1.domain.co.uk; root /var/www/php/site1; location / { index index.html index.php; try_files $uri $uri/ /index.php; } location ~ \.php$ { try_files $uri /index.php; fastcgi_pass php; include fastcgi_params; fastcgi_param PATH_INFO $fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } location /common { alias /var/www/common; } } 我的问题是,我必须重复每个网站的位置块吗? 或者我可以添加一个新的服务器块,将匹配的一切? 如果这是可能的,它会冲突我的configuration文件,匹配所有未映射到网站的域? 这个configuration文件如下所示: server { listen 80 […]
我只熟悉php和javascript,我猜php不擅长服务大量的并发请求。 如果有人能够为我介绍更合适的框架,我将不胜感激,因为我现在还不知道关键字。 非常感谢。
在Linksys路由器上使用DD-WRT,我有一个私人networking设置为br0,一个访客networking设置为br1。 我只想在访客networking上阻止对Skype的访问,而阻止Skype访问的最简单的方法是阻止访问他们的validation服务器。 通过添加以下防火墙规则,我能够成功地阻止每个连接到路由器的Skype用户访问Skype: iptables -I FORWARD -s 111.221.74.0/24 -j DROP iptables -I FORWARD -s 111.221.77.0/24 -j DROP iptables -I FORWARD -s 157.55.130.0/24 -j DROP iptables -I FORWARD -s 157.55.235.0/24 -j DROP iptables -I FORWARD -s 157.55.56.0/24 -j DROP iptables -I FORWARD -s 157.56.52.0/24 -j DROP iptables -I FORWARD -s 194.165.188.0/24 -j DROP iptables -I FORWARD […]
有关在Amazon EC2上托pipePHP的一些问题。 这是一个很好的select托pipe一个PHP网站,或者我应该考虑任何共享\便宜的托pipe,像Godaddy等? 免费套餐只提供一年吗? 那么,只有Micro计划才可以使用? 一年EC2托pipe一个小PHP网站需要多less钱? 或者,EC2的小实例需要花多less钱? EC2如何工作? 这就像一个虚拟机,我设置我想要的操作系统,或者是已经configuration了一个前端? 谢谢。
如何使用telnet或Putty或SecureCRT或其他shell程序,通过程序(Packet Tracer)在PC上运行的Packet Tracer中运行的路由器? 我使用GNS3,但需要使用Cisco 2800路由器,因此需要使用Packet Tracer。