服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器
我有一个数据库表,有30万行和113.7 MB的大小。 我有我的数据库运行在Ubuntu 13.10与8核心和8GB的RAM。 就目前来看,MySQL服务器平均占用了750%的CPU。 和6.5%的MEM(通过在CLI中运行得到的结果)。 还要注意,它运行在与Apache2 Web服务器相同的服务器上。 这是我在Mem行上得到的: Mem: 8141292k total, 6938244k used, 1203048k free, 211396k buffers 当我运行: show processlist; 我得到这样的回报: 2098812 | admin | localhost | phpb | Query | 12 | Sending data | SELECT * FROM items WHERE thumb = 'Halloween 2013 Horns/thumbs/Halloween 2013 Horns (Original).png' 2098813 | admin | localhost […]
这是关于应用程序请求路由和dynamic禁用磁盘caching某些请求(其中请求来自已authentication的用户;他们是否通过身份validation可以由自定义代码决定)。 在我的设置中,有一台运行ARR的服务器,将请求分派到另一台服务器上的ASP.NET MVC站点。 该站点使用表单身份validation(有时是HTTP基本身份validation),因此身份validation发生在MVC站点上,而不是ARR中:基本上,当用户validation站点时,会创build一个表单身份validationcookie。 我想在ARR中发生以下情况: 为匿名用户输出caching。 对于经过身份validation的用户,只会caching静态文件(例如.css,.js,.jpg文件),而不会cachingdynamic页面。 如何为这个场景设置cachingconfiguration规则? 我已经尝试了多种方式: 高速caching头:由MVC应用程序发送的高速caching控制头在这里是不可用的,因为想象一下:页1在ARR的高速caching中。 用户authentication和访问页面1. MVC应用程序将发送一个无caching头,但请求没有达到它,所以用户获得caching版本。 没有caching的url:我虽然可能定义的url与“no-arr-cache”不应该被caching将工作与URL重写,即与自定义url重写提供程序我会重写已validation的请求…?无ARRcaching。 除了ARRcaching控制规则不关心查询string之外,问题是ARR只在计算cachingconfiguration规则时考虑请求的URL,而不是重写的URL。 先谢谢你! 我从IIS论坛交叉发布这个消息,因为没有人回答。
NexentaStor有一个方便的性能分析界面,作为某些dtrace脚本的前端。 它可以监视设备的实时IOPS或I / O吞吐量。 不幸的是,这个接口在几分钟后超时,留下一个空白统计屏幕并重新设置图表。 有关如何防止这个问题的任何build议?
问题是,我怎么知道哪个LVM分区对应于哪个虚拟KVM光盘? 我正在尝试在LVM逻辑卷上安装KVM来宾(Ubuntu服务器)。 我已经使用lvcreate来创build启动,root,home,tmp,usr,var和swap分区。 引导是ext2,swap是交换,其余的是ext4。 但是,使用virt-install并从外部计算机连接spice,ubuntu安装程序会显示虚拟光盘vda,vdb,vdc,vdd,vde,vdf和vdg。 由于我在启动时使用了文件系统ext2,并且vda被识别为ext2,因此我可以将启动映射到vda。 以类似的方式,我可以将交换映射到vdg。 但是对于其他人怎么做呢? 这个映射位于哪里? 另外,上面的程序是如何在LVM逻辑卷上安装KVM guest虚拟机的呢?
为什么这是一个无效的查询? wmic service where 'caption like "%documentum%"' get name, caption Node – PE95AOECM ERROR: Description = Invalid query 这是预期的输出: Caption Name EMC Documentum Thumbnail Server DctmThumbnailServer Documentum Docbroker Service Docbroker DmDocbroker Documentum Java Method Server DmMethodServer Documentum Docbase Service KxKDOC_DEV DmServerKxKDOC_DEV Documentum Docbase Service KxKTAX_DEV DmServerKxKTAX_DEV Documentum Docbase Service KxK_Dev DmServerKxK_Dev Documentum Docbase Service KxK_Dev_HRP […]
所以我试图用我的Django应用程序的uwsgi设置Nginx。 这是我的/etc/nginx/nginx.conf文件: # /etc/nginx/nginx.conf user richard richard; ## Default: nobody worker_processes 5; ## Default: 1 error_log /var/log/nginx/error.log; pid /var/log/nginx/nginx.pid; worker_rlimit_nofile 8192; events { worker_connections 4096; ## Default: 1024 } http { include /etc/nginx/mime.types; include /etc/nginx/proxy.conf; index index.html index.htm; default_type application/octet-stream; log_format main '$remote_addr – $remote_user [$time_local] $status ' '"$request" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log […]
Windows Server 2008r2通过屏幕属性对话框允许的最低分辨率是800×600。 我有一个特殊的辅助显示屏,需要运行在640×480。 这以前一直在Windows Server 2000上运行,它支持640×480就好了。 我想退休的Win 2000系统,并将应用程序移动到2008r2框。 有什么办法(registry等)重新启用辅助监视器上的640×480分辨率选项? 显示器不支持DDC,并被识别为未知的模拟监视器。
我已经build立了一个与SElinux的Debian机器,除了从远程机器的rsync ,一切工作正常。 我已经使用audit2allow创build了一些具有额外权限的模块,现在审计日志中的所有错误都消失了。 当我尝试rsync到机器,但不幸的是,连接仍然是不允许的。 设置selinux宽容,一切都按预期工作。 我没有运行rsync作为守护进程,这通常会导致networking中的问题报告出现更多的问题。 rsync只是默认的Debian 7configuration。 远程rsync失败并显示以下消息: user1@othermachine:~$ rsync -vv servermachine:/home/user1/some/file . opening connection using: ssh servermachine rsync –server –sender -vve.Lsf . /home/user1/some/file rsync: connection unexpectedly closed (0 bytes received so far) [Receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(605) [Receiver=3.0.9] 这是rsync的权限如何: root@host:~# ls -Z /usr/bin/rsync system_u:object_r:rsync_exec_t:SystemLow /usr/bin/rsync […]
最近,我想把我的一个WSGI应用程序放到一个子目录中,这样其他包含各种脚本的目录就像以前一样工作。 为了做到这一点,我在全局命名空间的httpd.conf中添加了下面的指令(也试图把它放在VirtualHost ,它给出了相同的效果): WSGIScriptAlias /hello/ /var/www/hello/hello.wsgi 然后,我跑了django-admin startproject hello 。 重新加载Apacheconfiguration后,我可以确认http://localhost/hello/指向一个Django的“欢迎”屏幕。 然后,我编辑了hello/urls.py在urlpatterns元组中添加下面一行: url(r'^hello/', 'hello.views.home'), 接下来,我创build了具有以下内容的hello / views.py: from django.http import HttpResponse def hello(request): return HttpResponse("Hello world") 不幸的是,当我尝试访问http://localhost/hello/hello ,我得到一个标准的Apache 404消息,并在错误日志中input以下内容: [Mon Dec 23 19:49:44 2013] [error] [client 31.182.131.38] Target WSGI script not found or unable to stat: /var/www/hello/hello.wsgihello 注意hello.wsgihello 。 第二个hello是URL中/hello/之后出现的文本。 对于http://localhost/hello/unknown ,这将是hello.wsgiunknown 。 这里是我的hello.wsgi : […]
我非常熟悉机器人正在探测我的服务器的漏洞,但今天当我检查我的访问日志时,我注意到在日志中出现了一堆谷歌search。 这到底是什么意思? 91.188.124.225 – – [22/Dec/2013:22:15:03 +0000] "GET http://www.google.pl/search?q=onet.pl HTTP/1.1" 301 325 "-" "-" 91.188.124.225 – – [22/Dec/2013:22:46:02 +0000] "GET http://www.google.pl/search?q=wp.pl HTTP/1.1" 301 323 "-" "-" 91.188.124.225 – – [22/Dec/2013:23:16:59 +0000] "GET http://www.google.pl/search?q=wczasy HTTP/1.1" 301 324 "-" "-" 91.188.124.225 – – [22/Dec/2013:23:48:01 +0000] "GET http://www.google.pl/search?q=polska+najlepsza HTTP/1.1" 301 334 "-" "-" 91.188.124.225 – – [23/Dec/2013:00:19:00 +0000] […]