Tag Archives: linux

Installing Java Automatically (With Silent Option)

Auto agree with licence. https://askubuntu.com/questions/190582/installing-java-automatically-with-silent-option If OpenJDK/OpenJRE works fine for you, I recommend using that package instead as suggested by @SAM. However, some software really... Read More | Share it now!

Ubuntu 16.04安装Java JDK

Java JDK有两个版本,一个开源版本Openjdk,还有一个oracle官方版本jdk。下面记录在Ubuntu 16.04上安装Java JDK的步骤。 安装openjdk 更新软件包列表: $ sudo apt-get update 安装openjdk-8-jdk: $ sudo apt-get... 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,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!

CentOs 6.x 升级 Python 版本

在CentOS 6.X 上面安装 Python 2.7.X CentOS 6.X 自带的python版本是 2.6 , 由于工作需要,很多时候需要2.7版本。所以需要进行版本升级。由于一些系统工具和服务是对 Python 有依赖的,所以升级 Python... Read More | Share it now!