我有一个Nginx服务器上有几个网站,服务器上的一些网站花了不止一个时间来传输第一个字节,然后一些其他人。 据我所知,Nginx会查看启用网站的文件夹中的每个conf文件,直到find正确的文件,因此所有具有接近该列表顶部的conf文件的网站的“首字节时间”那些在列表的底部。 有没有什么办法让它们的载入速度一样快呢? 我知道这是一个渺茫的机会,但我认为这值得提问。
我已经安装了postfix和dovecot-imadp 。 使用thunderbird连接工作正常,但是当我尝试发送电子邮件时,出现以下错误: 5.7.1 <[email protected]>: Relay access denied 。 我能做些什么来解决这个问题?
我将我的公司内部网从OS X服务器迁移到Ubuntu 12.04服务器。 我们使用一个平面文件来存储用户名和密码哈希。 这个文件被Apache和Dovecot用来validation用户。 Ubuntu服务器运行Dovecot 2.0,而OS X服务器运行Dovecot 1.2。 我已经迁移了使用Apache进行authentication的WebDav。 authentication工作。 我正在迁移使用Dovecot进行authentication的Prosody服务器。 Dovecot正在运行,但是当我使用telnet a login username password或doveadm sudo doveadm auth username来testing身份validation时,我得到了dovecot: auth: passwd-file(username): unknown user dovecot: auth: Debug: client out: FAIL#0111#011user=username我的日志文件中的dovecot: auth: Debug: client out: FAIL#0111#011user=username 。 我可以使用sudo dovecot user username执行用户查找,它将返回用户的信息。 我可以在本地生成密码哈希,Dovecot会validationtesting密码就好了。 编辑:该scheme设置为默认的CRYPT。 编辑第二个:这是我在auth-passwdfile.conf.ext中的内容: # Authentication for passwd-file users. Included from auth.conf. # # passwd-like […]
是否有可能知道我的Linux服务器上运行的任何应用程序使用的内存? 我使用下面的命令来了解php-fpm使用了多less内存。 ps -ylC php5-fpm –sort:rss | awk '!/RSS/ { s+=$8 } END { printf "%s\n", "Total memory used by PHP-FPM child processes: "; printf "%dM\n", s/1024 }' 鉴于上面的命令,我想知道所有应用程序使用的内存以下面的示例输出: PHP-FPM:2.3gb MySQL:5gb nginx:200mb dovecot:100mb memcached:573mb MohyedeenN更新: 谢谢,但输出似乎重复如下: Total memory used by config : 3M Total memory used by imap : 7M Total memory used by imap-login […]
我有一个运行在Ubuntu 12.04.2 LTS上的应用程序,我正在ubuntu屏幕上运行一个应用程序服务器,比如mailman server或者faye server 。 问题是,在屏幕上运行的进程有时会停止,因此我的应用程序崩溃。 现在,只要在屏幕上运行的“faye服务器”或“邮递员服务器”停止运行,我就会收到通知。 我正在使用数字海洋,我已经安装了Postfix服务器。
对于初学者来说,这不是一个Web服务器。 我想允许或拒绝服务器本身的各种端口上的HTTP方法。 理想情况下,可以编写像UFW这样的规则,只扩展到包含HTTP方法 例如 ufw allow 80 -method GET -deny POST,PUT,DELETE 有没有什么轻量级的解决scheme呢? 谢谢。 服务器通常运行诸如elasticsearch,redis等产品。只允许来自特定IP的各个端口上的操作是非常好的。
我正在运行以下脚本以将信息从远程服务器中推送出去,并将其存储在本地服务器上。 该脚本的作品,但每次运行它再次下载一切。 我已经尝试在目标运行脚本并从远程服务器获取信息的情况下运行它。 它仍然想下载一切。 我还包括选项 – 更新和再次相同的事情。 我在另一组服务器上运行这个相同的脚本,它只在那些服务器上提取更新的文件。 总之,如何修改这个脚本来只更新新文件? 我错过了服务器上的东西吗? rsync -avz –delete -e ssh [email protected]:/source/storage/location/ /destination/storage/location/
对不起,我不知道如何解决依赖关系问题。 我的Ubuntu服务器是12.04 64位 $ sudo apt-get install libcurl4-openssl-dev Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved […]
我毁了iptables,我无法连接到我的Ubuntu 12.04.03服务器…我激活救援模式(grml),这是我得到的时候,我试图冲洗它: root@grml:/# iptables -F FATAL: Could not load /lib/modules/3.7-1-grml-amd64/modules.dep: No such file or directory iptables v1.4.12: can't initialize iptables table `filter': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. 我在谷歌找不到任何东西。 这真的很重要,如果你能帮忙,请…
添加了一个存储库,以便在Ubuntu 12.04.3 LTS中轻松地从PHP 5.3迁移到5.5。 在添加了PPA并按照https://askubuntu.com/a/109544中的大部分build议之后,似乎PPA没有足够好地处理升级,或者有些东西有点偏离,甚至在制作完成之后仍然无法正常工作必要的configuration更改后升级。 我删除了PPA,并清除了一些东西,然后重新安装,但现在看起来更多了,我似乎无法恢复到正确的工作状态。 我备份了我所有的configuration,只是试图让事情像以前一样工作无济于事。 例如: myusername ~ $ sudo service php5-fpm stop php5-fpm: unrecognized service myusername ~ $ sudo /etc/init.d/php5-fpm stop sudo: /etc/init.d/php5-fpm: command not found myusername ~ $ ls -al /etc/init.d/php5-fpm lrwxrwxrwx 1 root root 21 Dec 12 17:00 /etc/init.d/php5-fpm -> /lib/init/upstart-job 我不知道还有什么可以去恢复的东西,更乐意回到默认设置,并把我的configuration放回去,但我不认为我已经取消了升级的成功。 我怎样才能修理东西,或让事情恢复到理智的工作状态?