我有一个远程计算机支持业务,我们有必要不时远程挂载客户端机器上的.iso文件,以便用于获取驱动程序更新等。 我们拥有Netcraft十大名单上的一个巨大的服务器,我想在这个东西上安装一些ISO,并使用WebDAV之类的技术将它们安装在远程PC上。 例如,我们无法将DriverPack Solution 4GB DVD下载到机器,然后扫描/更新驱动程序。 我们宁愿像Google Drive一样装载图像….任何想法?
在几个CentOS盒子上用cURL和PHP有一个奇怪的问题。 我在本地运行CentOS 6.3。 远程是CentOS 5.9 在本地,这个盒子接收到一个请求,scp的一个文件到远程服务器,然后通过PHP执行一个cURL请求到远程服务器发送一些信息。 请求总是在第一次尝试的时候失败。 随后的请求正常工作。 远程有一个有效的SSL证书 – 即使如此,closures证书和主机validation不能解决问题。 日志logging不是很有帮助。 把冗长变为11,最有意义的条目是这样的: * About to connect() to www.example.com port 443 (#0) * Trying 203.0.113.10… * connected * Connected to www.example.com (203.0.113.10) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * NSS error -5938 * Closing connection #0 * […]
我正在用Apache运行CentOS 6.4,并且无法通过WHM运行Easy Apache更新。 它失败与yum有关的错误,所以我决定手动更新yum。 这是运行yum update –skip-broken时输出的最后一个视图行 Packages skipped because of dependency problems: compat-expat1-1.95.8-8.el6.x86_64 from base git-1.8.2.1-1.el5.x86_64 from epel glibc-2.12-1.107.el6_4.4.i686 from updates glibc-2.12-1.107.el6_4.4.x86_64 from updates glibc-devel-2.12-1.107.el6_4.4.i686 from updates glibc-devel-2.12-1.107.el6_4.4.x86_64 from updates glibc-headers-2.12-1.107.el6_4.4.x86_64 from updates glibc-static-2.12-1.107.el6_4.4.x86_64 from updates nscd-2.12-1.107.el6_4.4.x86_64 from updates Error: Multilib version problems found. This often means that the root cause is something else […]
所以我不明白这些错误信息。 我被告知有人可能试图破解我的服务器,但我不是100%确定发生了什么事情。 我正在运行CentOs 6。 这里是我得到的错误列表: PS没有这些IP是矿 [Mon Dec 09 12:36:27 2013] [error] [client 216.121.127.194] script not found or unable to stat: /var/www/cgi-bin/php [Mon Dec 09 12:36:27 2013] [error] [client 216.121.127.194] script not found or unable to stat: /var/www/cgi-bin/php [Tue Dec 10 04:39:32 2013] [error] [client 202.162.221.227] script not found or unable to stat: /var/www/cgi-bin/php [Tue […]
尝试修补CVE-2014-0196漏洞,但yum找不到软件包更新 CentOS 6.5(最终)面板版本:11.0.9更新#61 # uname -r 2.6.32-358.11.1.el6.x86_64 # yum update kernel Loaded plugins: fastestmirror Determining fastest mirrors epel/metalink | 23 kB 00:00 epel: mirror.fraunhofer.de base | 3.7 kB 00:00 epel | 4.4 kB 00:00 epel/primary_db | 6.2 MB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 3.7 MB 00:00 Setting […]
我最近把我的drbd设置从Ubutnu迁移到了centos 7,我得到了一个奇怪的错误: 我可以正常地加载和卸载模块,整个事情似乎工作 #>modprobe drbd #>lsmod | grep drbd drbd 373504 2 … 我现在可以发出drbdadm up drbdres命令,查看资源的状态,似乎一切正在运行。 我也可以卸载模块 #>rmmod drbd #>lsmod | grep drbd #>drbdadm cstate all 0: Failure: (127) Device minor not allocated … #> lsmod | grep drbd drbd 373504 2 … 所以我可以加载模块,drbdadm能够加载它,但不提供任何资源,而文档声称init脚本会这样做,所以drbd显然不会以这种方式初始化模块。 正常情况下,在/etc/init.d/drbd init脚本启动时,/etc/drbd.conf中configuration的所有资源都会自动启用。 (来源: http : //www.drbd.org/users-guide-8.3/s-enable-disable.html ) 如果我尝试运行init.d脚本,我得到一个奇怪的错误: #>/etc/init.d/drbd start script […]
我正在创build几个正在被注册在CentOS 6.5服务器上执行的脚本。 其中一个脚本有一个while循环阻塞,直到它在启动过程中(init.d)的另一个进程的日志上find成功的启动消息。 如果我的脚本依赖于这个服务,永远不会将成功的开始logging到它的日志文件,并且我的脚本永远挂在while循环上,这个特定的场景是否会使操作系统完全挂起而不会启动? 是否有init.d脚本的超时设置? 我的脚本被注册在rc.local文件上执行。
环境:* CentOS 6.5 * Fail2Ban 0.8.14-1 *date输出正确的date 行为:Fail2ban成功启动,但在SSHlogin尝试失败后不会创buildiptables块。 我现在只关心SSH。 我试图重新安装使用本指南: https : //www.digitalocean.com/community/tutorials/how-to-protect-ssh-with-fail2ban-on-centos-6 Fail2Ban曾经工作 – 但通过系统更新,似乎已停止工作。 如果我跑 sudo service fail2ban restart 我收到一封电子邮件,说监狱已经停了,另一封电子邮件说监狱已经开始了,所以看起来fail2ban正在运行并且function正常。 我的/etc/fail2ban/jail.local文件包含条目: [ssh-iptables] enabled = true filter = sshd action = iptables[name=SSH, port=ssh, protocol=tcp] sendmail-whois[name=SSH, [email protected], [email protected], sendername="Fail2Ban"] logpath = /var/log/secure maxretry = 5 我的IP地址没有在ignoreip delcaration中列出。 我使用的是600的标准禁用时间,600的发现时间,以及3的最大时间。 当我看着/ var / log / secure时,我看到很多失败的尝试: Sep […]
我有一个使用NGINX / PHP-FPM运行CentOS的VPS。 一切工作正常,除了当我添加以下行以启用静态caching内容。 如果我这样做,页面不会加载指定的这些文件来保持caching。 location ~* \.(ico|css|js|gif|jpg|jpeg|png)$ { expires 30d; add_header Vary Accept-Encoding; access_log off; } 这是我的整个服务器{}: server { listen 80; server_name mywebsite.com www.mywebsite.com; #location ~* \.(ico|css|js|gif|jpg|jpeg|png)$ { # expires 30d; # add_header Vary Accept-Encoding; # access_log off; #} location / { if ($http_host ~* "^www.(.*)$"){ set $rule_0 1$rule_0; set $bref_1 $1; } if […]
这是checkrestart 。 检查升级后需要重启哪些进程 有没有提供这种function的软件包? 希望很明显,但这个答案是完全不能接受的。 我不能依赖系统上的每个库的包维护者来分别检查服务是否正在使用这个库,然后强迫这些服务重启,以免我重启这些服务就没事了。