我从OC的安全摄像机收集video剪辑。 每10分钟观看一次新的video文件,如果是的话,电子邮件发送给拥有特定相机设置的用户。 这样的邮件包含这样的新video剪辑的链接(一个或多个): https://<my_site>/owncloud/remote.php/webdav/Filmy/Kamery/1.mp4 所有的电影链接都可以在Firefox和Chrome浏览器中正确打开,但不能在基于Android的设备上打开。但是我想要使用链接到静态WEB页面,内容如下: <!DOCTYPE html> <html> <body> <video width="400" controls> <source src="https://<my_site>/owncloud/remote.php/webdav/Filmy/Kamery/1.mp4" type="video/mp4"> Your browser does not support HTML5 video. </video> </body> </html> 于是我为每封电子邮件创build了如上所述的静态WEB页面,并发送邮件内容: https://<my_site>/owncloud/remote.php/webdav/Filmy/Kamery/index_<date_time>.html [/code] 但是当我点击这样的链接时,只会显示index_.html的内容而不是HTML内容。 我做错了什么?
我有nginx在/ etc / nginx / sites-enabled中设置了几个服务器 但是,我想将我的设置转换到一个域myserver.com ,所以在浏览器中input lalala.com 将不再让我到相应的/ usr / share / webapps / lalala子文件夹。 因此,我想创build某种types的绑定(如果可能的话),这样,如果我键入 myserver.com/lalala 它会redirect到/ usr / share / webapps,同时仍然应用/ etc / nginx / sites-enabled / lalala的所有configuration 这里是我的conf文件: nginx.conf 服务器示例一ownCloud
我正在尝试设置dkim,但无法正常工作或正确testing,并且出现以下错误: opendkim-testkey -vvvv -d domain.com -s默认opendkim-testkey:检查密钥“default._domainkey.domain.com”opendkim-testkey:找不到“default._domainkey.domain.com”logging 我试图重新命名为关键的一堆不同的可能性,nah-dah: mlr01键#ls default default.private _domainkey.domain.com default._domainkey.domain.com default.txt domain.com 我有我的绑定DNS区域文件中的以下logging default._domainkey IN TXT ( "v=DKIM1; k=rsa; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/9PDXdenz1TVY5lcdnsx2x+0GEeaLviGkZmnNW+7CCpNcRjj1ulO4CcRWgqCUynJUmHj2ma0HLAsHUC7NZdi0HmagG5HSYA+K8nuB8/SdMPoF+FFG5ccOAwTh7flXPTepwJmJgeN0DrtVzDaWHGs+Y+S9UBPZRR7GfKHb1WIdEwIDAQAB" ) ; —– DKIM key default for domain.com 除了dkim,dns是无错的 这是我的configuration: mlr01 keys#cat ../opendkim.conf LogWhy yes Syslog yes SyslogSuccess yes Canonicalization relaxed/simple Domain domain.com #KeyFile /etc/opendkim/keys/default.private Socket inet:8891@localhost ReportAddress [email protected] SendReports yes ## […]
用barnyard2build立了一个snort box,运行到下面的错误。 有人可以帮忙吗? $Starting Snort Output Processor (barnyard2): ./barnyard2: 35: ./barnyard2: barnyard2: not found /etc/init.d/barnyard2文件 #!/bin/sh # # Init file for Barnyard2 # # # chkconfig: 2345 40 60 # description: Barnyard2 is an output processor for snort. # # processname: barnyard2 # config: /etc/sysconfig/barnyard2 # config: /etc/snort/barnyard.conf # pidfile: /var/lock/subsys/barnyard2.pid [ -x /usr/sbin/snort ] […]
我们的一个虚拟机突然被卡在100%的CPU负载,无法从SSH到达。 重新启动没有帮助,也没有从现有的VHD创build新的虚拟机。 我下载了VHD。 但是,我无法启动它,因为它被困在cloud-init寻找login方式(我认为)。 有没有办法绕过云初始化过程,让我以某种方式login? cloud-init-nonet waiting 120 seconds for a network device. cloud-init-nonet gave up waiting for a network device. … route_init failed
我正在运行Debiantesting(Jessie),而XFCE4是我的桌面环境。 我最近做了apt-get升级。 现在,当我启动时,我得到一个闪烁的光标黑屏。 没有任何反应,但我可以去其他terminal(例如ctrl alt + f2)。 lightdm.log: [+0.02s] DEBUG: Logging to /var/log/lightdm/lightdm.log [+0.02s] DEBUG: Starting Light Display Manager 1.10.3, UID=0 PID=635 [+0.02s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d [+0.02s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf [+0.02s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d [+0.02s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d [+0.02s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf […]
我有一个要求将几个Linux帐户的maxdays设置更改为365,大多数帐户被locking。 密码老化设置是否影响这些帐户? 我担心的是我会把它们改成365(现在很多是99999或-1),一年之后,一些使用它们的过程不会再起作用或者不再起作用了。
我们使用New Relic来监视服务器和PHP应用程序。 New Relic报告的内存使用率为90%,与top 。 然而,New Relic本身和top的进程所使用的内存总和明显低于此。 free -m输出: total used free shared buffers cached Mem: 17083 16829 254 0 151 1066 -/+ buffers/cache: 15611 1472 Swap: 0 0 0 /proc/meminfo输出: MemTotal: 17493932 kB MemFree: 527248 kB Buffers: 155516 kB Cached: 1092348 kB SwapCached: 0 kB Active: 1591208 kB Inactive: 224868 kB Active(anon): 568500 kB […]
我在/ etc / fstab的CLIENT上挂载了NFS共享: SERVER:/share on /mnt/share type nfs (rw,users,noexec,nosuid,nodev,timeo=14,hard,intr,addr=1.2.3.4) 客户端上的大量使用,如复制大量的数据,在几分钟后崩溃。 SERVER上的/etc/exports : /nfsshare 1.2.3.4(rw,no_subtree_check,no_root_squash) 有时(并不总是)我在客户端上: messages:Nov 18 16:28:09 CLIENT kernel: nfs: server SERVER not responding, still trying 客户资料: Linux CLIENT 2.6.32-279.22.1.el6.x86_64 #1 SMP Sun Jan 13 09:21:40 EST 2013 x86_64 x86_64 x86_64 GNU/Linux % cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.3 (Santiago) […]
(不要担心,我不是问我的设置应该是什么,要求我读了一些相互矛盾的build议背后的理论) 我的应用程序是轻量级的,没有太多的负载,但是当请求进来时(在整个LAMP堆栈的响应时间为20ms以下),它需要运行得像润滑脂一样。 我把swappiness从60减less到10,而服务器从来没有在交换中存储过一个字节的数据,这似乎是有道理的,因为我的16GB内存只有6GB左右,所以我宁愿把所有内容都放在内存中以减less延迟因此响应时间(服务器有一个旋转光盘,没有固态硬盘)。 我最近升级到14.04.1 LTS,并且今天注意到4096k被存储在交换中,尽pipe只有6.5GB的内存被使用。 所以我查了一下这个设置,回到了60,升级的时候肯定发生了。 我去做了一些研究,我读到的文章build议像桌面应用程序这样的低设置为10,因为服务器可能受益于更高的设置,如默认60。 其中一些文章提出这是因为服务器具有不同的性能要求,并谈论有512MB内存的服务器。 我可以理解你为什么要用低内存交换,但在我的情况下,除非绝对必要,否则绝对不会交换是最好的select? 还是我错过了什么? 我所指的文章是: https : //sites.google.com/site/easylinuxtipsproject/first#TOC-Decrease-the-swap-use-very-important- https://help.ubuntu.com/community/SwapFaq#What_is_swappiness_and_how_do_I_change_it.3F 感谢您的任何build议。