Category Archives: linux

install snappy lib

2.2 安装依赖 首先在服务器上安装snappy,而安装snappy需要一系列的依赖,为了避免麻烦我们首先安装好这些依赖 $ sudo yum -y install gcc c++ autoconf automake libtool 1 2.3... Read More | Share it now!

Change a server’s hostname in CentOS

By default, your server is started with the server’s given name as the hostname. Some software, such as cPanel, requires a valid Fully Qualified Domain Name (FQDN) for the hostname to be used during their licensing verification system. This article... Read More | Share it now!

linux下passwd命令设置修改用户密码

1、passwd 简单说明; 我们已经学会如何添加用户了,所以我们还要学习设置或修改用户的密码;passwd命令的用法也很多,我们只选如下的几个参数加以说明;想了解更多,请参考man... Read More | Share it now!

解决Linux中出现Too many open files

Too many open files 问题出现有两种情况: 一种是在搜索的时候出现,多半是由于索引创建完毕之后被移动过,如果创建索引的时候不出现该错误,搜索的时候也一般是不会出现的。如果出现了,有两种处理办法,一种是修改合并因子和最小合并因子,并且使用 IndexWriter.Optimize() 优化索引,这样会将索引文件数量减少到文件系统限制之内;另外一种办法是修改操作系统的打开文件数量限制。方法如下: 1. 按照最大打开文件数量的需求设置系统, 并且通过检查/proc/sys/fs/file-max文件来确认最大打开文件数已经被正确设置。 # cat /proc/sys/fs/file-max 如果设置值太小, 修改文件/etc/sysctl.conf的变量到合适的值。 这样会在每次重启之后生效。 如果设置值够大,跳过下步。 # echo 2048 > /proc/sys/fs/file-max 编辑文件/etc/sysctl.conf,插入下行。 fs.file-max = 8192 ... Read More | Share it now!

python升级导致yum命令无法使用的解决办法(修改版)

1、报错信息: There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named yum Please install a package which provides this module, or verify that the module is... Read More | Share it now!

SSL双向验证证书生成

http://blog.csdn.net/skygpan/article/details/50720658 Generate server keys生成服务器证书 keytool -genkey -alias serverkey -keyalg RSA -keystore kserver.keystore keytool -export -alias serverkey -keystore kserver.keystore -rfc -file... Read More | Share it now!

Creating Your Own SSL Certificate Authority (and Dumping Self Signed Certs)

Creating Your Own SSL Certificate Authority (and Dumping Self Signed Certs) Jan 11th, 2016: New Year! Also, there was a comment below about adding -sha256 to the signing (both self-signed and CSR signing) since browsers are starting to reject... Read More | Share it now!

那些证书相关的玩意儿(SSL,X.509,PEM,DER,CRT,CER,KEY,CSR,P12等)

之前没接触过证书加密的话,对证书相关的这些概念真是感觉挺棘手的,因为一下子来了一大堆新名词,看起来像是另一个领域的东西,而不是我们所熟悉的编程领域的那些东西,起码我个人感觉如此,且很长时间都没怎么搞懂.写这篇文章的目的就是为了理理清这些概念,搞清楚它们的含义及关联,还有一些基本操作. SSL SSL... Read More | Share it now!

uname-Print Linux info

NAME      uname — Print operating system name SYNOPSIS      uname DESCRIPTION      The uname utility writes symbols representing one or more system charac-      teristics to the standard output.      The following options are... Read More | Share it now!

how to use ssh to run shell script on a remote machine?

ssh user@host <<'ENDSSH' #commands to run on remote host ENDSSH ... Read More | Share it now!