小编ale*_*xus的帖子

应设置为 65000 以避免操作中断

我正在关注将 Solr 投入生产 | Apache Solr 参考指南 8.5,但是无法克服重新启动solr服务时的警告:

# service solr restart
*** [WARN] *** Your open file limit is currently 1024.
 It should be set to 65000 to avoid operational disruption.
 If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
*** [WARN] ***  Your Max Processes Limit is currently 1024.
 It should be set to 65000 to avoid operational disruption.
 If you no longer wish to …
Run Code Online (Sandbox Code Playgroud)

ulimit solr rhel6

7
推荐指数
1
解决办法
1万
查看次数

通过防火墙阻止 Torrent

有没有办法阻止防火墙级别的用户使用种子?

firewall bittorrent

6
推荐指数
2
解决办法
3万
查看次数

在 Windows 2012 中每分钟安排一个任务

我需要安排Task我的 Windows 2012 内部分钟运行一次,如何做到这一点?这是我的Task

C:\>C:\Users\Administrator\Downloads\wget\bin\wget.exe --spider --quiet http://XXX/XXX.aspx
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Users\Administrator\Downloads\wget/etc/wgetrc

C:\>
Run Code Online (Sandbox Code Playgroud)

我试过Task Scheduler-> Create Task,但我不知道如何安排每分钟运行一次。

这在 *NIX 世界中是等价的:

$ crontab -l
* * * * *   wget --spider --quiet http://XXX/XXX.aspx
$ 
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?谢谢!

windows scheduled-task task-scheduler windows-server-2012

6
推荐指数
1
解决办法
2万
查看次数

如何增加 XFS 文件系统的大小?

我刚刚创建了一个运行RHEL7以下命令的 Amazon AWS EC2 实例:

[root@ip-10-184-161-46 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.0 (Maipo)
[root@ip-10-184-161-46 ~]# 
Run Code Online (Sandbox Code Playgroud)

即使我选择了10GB作为我的存储容量,无论出于何种原因,我只看到6GB可供我立即使用的容量:

[root@ip-10-184-161-46 ~]# mount | grep xfs | grep -v selinux
/dev/xvda1 on / type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
[root@ip-10-184-161-46 ~]# df -h | grep xvda
/dev/xvda1      6.0G  2.2G  3.9G  37% /
[root@ip-10-184-161-46 ~]# fdisk -l /dev/xvda

Disk /dev/xvda: 10.7 GB, 10737418240 bytes, 20971520 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size …
Run Code Online (Sandbox Code Playgroud)

xfs redhat rhel7

6
推荐指数
1
解决办法
2万
查看次数

SELinux 阻止 Nagios 插件在 RHEL6 上运行

安装 Nagios NRPE 和 Nagios 插件后,我在 rsyslog 中收到以下条目:

May 13 14:01:30 wcmisdlin02 kernel: type=1400 audit(1305309690.482:2334): avc:  denied  { getattr } for  pid=3835 comm="sh" path="/usr/bin/sudo" dev=dm-0 ino=7355981 scontext=unconfined_u:system_r:nrpe_t:s0 tcontext=system_u:object_r:sudo_exec_t:s0 tclass=file
Run Code Online (Sandbox Code Playgroud)

我试图通过 NRPE 执行的 Nagios 插件似乎被 SELinux 阻止了。我该怎么办?

linux selinux nagios nrpe

5
推荐指数
1
解决办法
1万
查看次数

有没有办法手动检查 openssl CVE-2014-0160 漏洞?

有没有办法根据CVE - CVE-2014-0160(最好使用opensslCLI)检查一些内部服务?

不能测试一切都只是通过:测试你的心脏出血漏洞的服务器(CVE-2014-0160)

openssl heartbleed

5
推荐指数
1
解决办法
2万
查看次数

位置正则表达式返回错误 410?在 Nginx

我正在使用nginx-1.6.2,2并且我想返回error 410匹配的 URL /browse.php?u=http,因此诸如此类的请求将获得 410:

162.218.208.16 - - [21/Nov/2014:12:35:40 -0500] "GET /browse.php?u=http%3A%2F%2Fwww.bing.com%2Fsearch%3Fq%3DBroke%2C%2BUSA%2Bfiletype%3Apdf%26first%3D0%26count%3D20%26format%3Drss&b=156&f=norefer HTTP/1.1" 403 570 "http://ww.thespacesurf.com/browse.php?u=http%3A%2F%2Fwww.bing.com%2Fsearch%3Fq%3DBroke%2C%2BUSA%2Bfiletype%3Apdf%26first%3D0%26count%3D20%26format%3Drss&b=156&f=norefer" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)"
Run Code Online (Sandbox Code Playgroud)

我真的不需要regex,所以像这样,但它不起作用:

location = /browse.php?u=http {
        return 410;
}
Run Code Online (Sandbox Code Playgroud)

几天后,我grep -c410/var/log/nginx-access.log

$ bzip2 -cd /var/log/nginx-access.log.0.bz2 | grep -c ' 410 '
5665
$ 
Run Code Online (Sandbox Code Playgroud)

这让我感到温暖和模糊)再次感谢!

nginx

5
推荐指数
1
解决办法
4759
查看次数

Subversion - svnadmin 转储远程 url

我有包含多个项目的 Subversion 存储库,现在我试图将每个项目分成自己的存储库。

系统:

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.11 (Tikanga)
# rpm -q subversion
subversion-1.6.11-12.el5_10
# 
Run Code Online (Sandbox Code Playgroud)

颠覆:

$ svnadmin dump http://svn/repo1/proj1/
svnadmin: E205000: 'http://svn/repo1/proj1/' is a URL when it should be a local path
$ 
Run Code Online (Sandbox Code Playgroud)

根据以下文档 - svnadmin—Subversion Repository Administration

由于 svnadmin 通过直接存储库访问工作(因此只能在拥有存储库的机器上使用),因此它使用路径而不是 URL 来引用存储库。

这解释了为什么它对我不起作用。还有哪些其他替代方法可以实现这一目标?

backup svn version-control dump

5
推荐指数
1
解决办法
9362
查看次数

如何在起搏器中设置资源粘性?

我正在使用红帽的高可用性附加组件,一切似乎都工作正常,但我有一个问题:

每当我重新启动其中一个节点时7test2,资源组g1就会迁移到7test1(按照设计),然后当7test2回来时,在线资源组g1会迁移回来,就像它具有某种粘性或其他东西一样。

[root@7test1 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.1 (Maipo)
[root@7test1 ~]# rpm -q pcs 
pcs-0.9.137-13.el7.x86_64
[root@7test1 ~]# pcs status
Cluster name: 7test
Last updated: Thu Apr 23 17:11:10 2015
Last change: Thu Apr 23 17:00:02 2015
Stack: corosync
Current DC: 7test1.uftwf.local (1) - partition with quorum
Version: 1.1.12-a14efad
2 Nodes configured
3 Resources configured


Online: [ 7test1.uftwf.local 7test2.uftwf.local ]

Full list of resources:

 rhevm  (stonith:fence_rhevm): …
Run Code Online (Sandbox Code Playgroud)

redhat pacemaker rhel7

5
推荐指数
1
解决办法
1万
查看次数

使用 SSL 测试 SMTP 服务器?

我想确保 SSL/TLS 连接确实在端口 465 上建立到我的 SMTP 服务器。(服务器在 Ubuntu 14.04 上运行)

使用:-

openssl s_client -connect example.co.uk:465

我得到如下所示的响应...

请注意,我收到了以下消息:-

“验证返回码:20(无法获得本地颁发者证书)”

但是,我可以继续与 EHLO 和 AUTH LOGIN 对话。

这是否意味着我“不在”安全连接上,并继续未加密?

谢谢约翰

CONNECTED(00000003)
---
Certificate chain
 0 s:/CN=example.co.uk
   i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
 1 s:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
   i:/O=Digital Signature Trust Co./CN=DST Root CA X3
---
Server certificate
-----BEGIN CERTIFICATE-----
<removed for clarity>
-----END CERTIFICATE-----
subject=/CN=example.co.uk
issuer=/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
---
No client certificate CA names sent
---
SSL handshake has read 3050 bytes …
Run Code Online (Sandbox Code Playgroud)

smtp openssl

5
推荐指数
2
解决办法
9733
查看次数