我正在根据这篇文章安装Mongo 3.4,并且说要在/ etc / fstab中设置noatime 在给出的例子中,它看起来像: LABEL=cloudimg-rootfs / ext4 defaults,noatime,discard 0 0 但是,我的Debian 8(从7升级)的数字海洋上的一滴水看起来像这样: UUID=5bc31ecc-d864-44dc-bea4-d409696cb577 / ext4 errors=remount-ro 0 1 /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0 我刚刚开始与系统pipe理员的东西,并希望确保一切都会工作。 我应该如何添加noatime?
我意识到这已经被问到,但不幸的是,我没有足够的经验或足够的时间来继续爬行,虽然search结果的网页山突然出现。 这是configuration新子系统的最后一步,需要尽快启动。 我希望通过从反应中消除的过程,我可以找出发生了什么事情。 NFS共享正在安装在远程盒子上,但正在使用未configuration的UID进行设置。 这是Linux到Linux的NFS,没有什么是在域上,也不是来自Windows / Mac共享的东西。 build立: 资源: Debian 7,源文件的所有者是rdebXXX,UID 1011 / etc / exports中: /home/rdebXXX/test dev-www(rw,sync,no_subtree_check,anonuid=512,anongid=1003) exportfs -a已经运行 目标服务器可以ping通 没有主机名过滤完成,hosts.allow和hosts.deny是空的 目的地: Debian 8,目标父目录的所有者是signsXXX,UID 512.所以挂载需要拥有相同的所有者。 / etc / fstab中: xxxx:/home/rdebXXX/test /home/signs/test nfs defaults,bg 0 0 xxxx的源服务器可以ping通 安装安装时没有安装错误 挂载的UID是1004,映射到目标服务器上的rdebXXX帐户。 我很确定这是偶然的,因为手动在不同时间创build的方框/帐户。 idmapd正在运行,idmap.conf的默认条目为: Nobody-User = nobody Nobody-Group = nogroup 笔记 我无法更改目标框的UID。 有多个NFS挂载从多个来源进入一些新的盒子,所以在这些情况下更改UID将不会有帮助,因为UID更改只能修复1个挂载。 我不能更改源代码框,因为正如前面提到的那样,它们是在当前使用的系统中。 任何一个所有的帮助将不胜感激。 我已经尝试了我所知道的并且花费了几个小时的时间,但是NFS可以非常挑剔,它并不总是很容易指出原因。
我注意到在我的日志中,Postfix不能发送电子邮件到本地帐户。 postfix/local[12775]: warning: maildir access problem for UID/GID=33/33: create maildir file /var/www/Maildir/tmp/1492097290.P12775.FQDN: Permission denied postfix/local[12775]: warning: perhaps you need to create the maildirs in advance postfix/local[12775]: 56ABC81A28: to=<www-data@FQDN>, relay=local, delay=0.02, delays=0/0.01/0/0.01, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /var/www/Maildir/tmp/1492097290.P12775.FQDN: Permission denied) postfix/qmgr[8037]: 56ABC81A28: removed 我有configuration的虚拟域,他们正常工作。 我能够成功地将电子邮件从一个帐户发送到另一个帐户。 如何将Postfix的本地交付选项更改为/var/www/ ?以外的其他目录
我有一个由ovh.com托pipe的VPS,并添加了一个新的IP地址。 第一个是51.254.117.162 我添加的是46.105.47.86 我在互联网上search了很多,但我找不到一种方法来设置我的VPS,使传出的stream量使用第二个IP地址。 我使用Debian 8(Jessie)。 这是我的/ etc / network / interfaces文件: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 allow-hotplug […]
我已经在主文件夹下configuration了php-fpm和nginx进行开发,并且我一直无法解决权限问题。 看起来php7.1-fpm.sock仍然拒绝连接,即使所有权限看起来都是正确的。 错误: root@xps:/var/log/nginx# cat error.log 2017/05/29 00:41:23 [crit] 27326#27326: *1 connect() to unix:/run/php/php7.1-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 127.0.0.1, server: sub.tld.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.1-fpm.sock:", host: "sub.tld.com" 每次尝试访问Web根目录时都会发生这种情况,该根目录应显示: <?php echo phpinfo(); ?> 在浏览器窗口中。 nginx.conf user darin darin; […] sub.tld.com.conf用于nginx server_name sub.tld.com root /home/darin/www […] location ~ \.php$ { […]
尽我所能,我不能禁止从PHP显示错误消息(使用php-fpm)。 相关文件; /etc/php5/fpm/php.ini:display_errors = Off /etc/php5/fpm/pool.d/www.conf:php_flag[display_errors] = off /etc/php5/fpm/pool.d/www.conf:php_admin_flag[display_errors] = off /etc/php5/cli/php.ini:display_errors = Off 当我打电话给phpinfo()输出如下[图片作为链接,因为这是我的第一篇文章,因此没有足够的声誉,把他们内联,对不起! /imgs/4ttGt.png /imgs/4LAah.png 上面显示configuration文件path为/etc/php5/fpm ,加载configuration文件为/etc/php5/fpm/php.ini 。 第二个图像显示display_errors和display_startup_errors Off 。 这表明这些设置已被正确设置,但加载一个错误的页面导致错误的页面,例如; 未知 :preg_replace():不推荐使用/ e修饰符,而是使用preg_replace_callback代替行651上的/path/to/file.php ****未知 :preg_replace():/ e修饰符不推荐使用,而是使用preg_replace_callback代替/第651行的path/到/ file.php (格式如上,所以HTML格式正在被应用) 我也尝试设置ini_set("display_errors", 0); 甚至error_reporting(0); 无济于事。 另外,编辑添加; # php5-fpm -i | grep error display_errors => Off => Off display_startup_errors => Off => Off error_append_string => […]
我有一个奇怪的问题与清漆,它在一个API的前面,它caching整个响应。 它大部分工作正常,但时不时要求5秒(或很less10秒,或15秒,总是增量为5)比平常更多的返回。 我已经尝试绕过前面的HAProxy,同样,我检查,它的URL是否已经被caching或没有(我检查了年龄头)。 所以它不能成为后端,因为页面在caching中,这不是什么前面的清漆,只留下清漆本身作为问题的原因。 任何想法可能会导致5秒钟的延迟? 我已经检查varnishlog,在那个延迟清漆没有做任何事情。 我也尝试过在这个延迟期间手动提出另一个请求,清漆回答良好,所以它不会被冻结或任何东西,它工作正常。 在这5秒结束时,它像往常一样输出请求的日志,没有什么奇怪的。 例如: “请求”132712 开始req 132711 rxreq 时间戳开始:1499701302.309413 0.000000 0.000000 时间戳记需求:1499701302.309413 0.000000 0.000000 ReqStart 127.0.0.1 43955 ReqMethod GET ReqURL /url ReqProtocol HTTP / 1.1 ReqHeader User-Agent:curl / 7.38.0 ReqHeader主机:主机 ReqHeader接受: / ReqHeader X-Forwarded-Proto:https ReqHeader X-Forwarded-For:ip ReqHeader连接:closures ReqUnset X-Forwarded-For:ip ReqHeader X-Forwarded-For:ip,127.0.0.1 VCL_call RECV ReqUnset X-Forwarded-For:ip,127.0.0.1 ReqHeader X-Forwarded-For:ip,127.0.0.1,127.0.0.1 VCL_return散列 VCL_call HASH […]
我正在尝试为Debian 8.5.0 Netinstall,AMD-64findISO。 我发现http://cdimage.debian.org/mirror/cdimage/archive/这个页面只包含一个“jigdo”选项来下载iso。 我下载并安装了我的Ubuntu(最新版本)jigdo。 我尝试从命令行使用jigdo-lite ,并插入http://cdimage.debian.org/mirror/cdimage/archive/8.5.0/amd64/jigdo-cd/debian-8.5.0-amd64-netinst .jigdo jigdourl。 一切都是成功的,但是当我试图在电脑上安装这个,我得到了数十个“损坏”的错误。 我在哪里可以findISO? 谢谢!
我已经使用testing库更新了Debian Jesie上的Apache2 https://www.shivering-isles.com/http-2-getting-ready-on-debian-with-apache2/ 我现在有: Server version: Apache/2.4.27 (Debian) Server built: 2017-09-23T22:08:01 an2mod http2 ..done ls -la /etc/apache2/mods-enabled lrwxrwxrwx 1 root root 28 Sep 25 16:42 http2.load -> ../mods-available/http2.load /etc/apache2/conf-available/http2.conf ….编辑 …. 但是检查https://www.tecnocroci.it HTTP2不起作用
由于在Debian中,通过标准仓库唯一可用的SOCKS5服务器是hpsockd我给服务器一个尝试。 现在我遇到了一些连接问题,需要debugging通过这个守护进程运行的连接。 日志variables是configuration的,但我不知道如何阅读使用日志 – 该文件的内容是二进制咕,我找不到任何文档如何阅读它。 那么,你如何阅读sockd的使用日志呢? 我需要额外的工具吗?