redhat

How to fix: fatal error: openssl/opensslv.h: No such file or directory in RedHat 7

℡╲_俬逩灬. 提交于 2019-12-02 21:24:13
I have RedHat Enterprise Linux Server 7, and I downloaded the linux kernel version 4.12.10 which I am trying to compile but when I execute the following command: make modules I get the following error: scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: No such file or directory Does anyone have an idea to fix this please ? To fix this problem, you have to install OpenSSL development package, which is available in standard repositories of all modern Linux distributions. To install OpenSSL development package on Debian, Ubuntu or their derivatives: $ sudo apt-get install libssl-dev To

Change JENKINS_HOME on Red Hat Linux?

筅森魡賤 提交于 2019-12-02 20:19:44
I used this procedure to install Jenkins: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions After it was up and running I discovered the /var/lib/jenkins partition on my server is very small. I want to move it, but I do not want to change the user that it runs under. I am new to Linux and I'm stumped. How do I move it for example to my Home/Public folder? The "Jenkins" user doesn't seem to have a Home folder. Its running as a daemon on startup, so I have no idea where to configure those settings. Can I create a Home folder for the Jenkins user? How? I read

On Linux - set maximum open files to unlimited. Possible?

狂风中的少年 提交于 2019-12-02 18:43:07
Is it possible to set the maximum number of open files to some "infinite" value or must it be a number? I had a requirement to set the descriptor limit for a daemon user to be "unlimited" and I'm trying to determine if that's possible or how to do it. I've seen some mailing lists refer to a "max" value that can be used (as in: "myuser hard nofile max", but so far the man pages and references I've consulted don't back that up. If I can't use 'max' or similar, I'd like to know how to determine what the max number of files is (theoretically) so I have some basis for whatever number I pick. I don

How to confirm RedHat Enterprise Linux version? [closed]

﹥>﹥吖頭↗ 提交于 2019-12-02 17:30:59
I am a bit confused by the fact that although I installed RHEL 5.1 from DVD (RedHat/5.1.x86_64), when I issue command: cat /etc/redhat-release I got: Red Hat Enterprise Linux Server release 5.5 (Tikanga) What does this mean? is this to be the release version or kernel version? Is there another way to confirm the real version of RHEL? I am asking this question because there will be certain applications that would depend on this. Many thanks in advance. I assume that you've run yum upgrade. That will in general update you to the newest minor release. Your main resources for determining the

Redhat和CentOS的yum源配置

ⅰ亾dé卋堺 提交于 2019-12-02 17:14:16
做过好多次CentOS的yum源配置了,这里总结一下: CentOS和Redhat的区别在于,CentOS是基于redhat的社区版,免费,跟Redhat对应,但是release比redhat慢。 Redhat的yum是非免费服务,而CentOS的yum是免费的,所以一般我们在Redhat上配置和CentOS的yum源。 升级环境:Redhat linux 5.11,这台机器是(bugzilla+svn+svnmanager+scmbug)的测试环境,刚刚由5.6升级而来。升级后perl的版本还是5.8,而bugzilla需要5.10的版本,而单独升级perl会产生一连串的系统包依赖,所以必须使用yum的方式来处理。 [root@subv2 yum.repos.d]# rpm -qa|grep yum yum-3.2.22-40.el5 yum-metadata-parser-1.1.2-4.el5 yum-security-1.1.16-21.el5 yum-rhn-plugin-0.5.4.1-7.el5 yum-updatesd-0.9-6.el5_10 [root@subv2 yum.repos.d]# 需要重装yum软件,卸载redhat上的yum软件,安装centos的yum软件。 这里配置163的yum源: http://mirrors.sohu.com/centos

redhat 7.6 find 命令

南笙酒味 提交于 2019-12-02 16:36:29
1.按名字查找 find ./ -name filename //精确查找 ,./ 代表当前目录 -name 查询名称 filename具体文件名称 find ./ -name "*file*" //模糊查找 2.按时间查找 find ./ -mtime -2 //数字单位为天数,2天之内.+2 2天后的所有内容 find ./ -mmin -5 //代表5分钟之内,+5 5分钟后的所有内容 3.按文件大小查找 find ./ -size +10M //查找大于10M的文件 find ./ -size -10M //查找小于10M的文件 4.按对象类型查找 find ./ -type f   //按普通文件查找 find ./ -type l //按链接文件查找 find ./ -type d //按文件查找出来 find ./ -type f -or -type d //查找普通文件和目录一起显示 find ./ -maxdepth 1 -type f -or -type d //-maxdepth设置查找目录级别 find ./ -maxdepth 1 -type f -or -type d -exec ls -lh {} \ ; //使用exec 对查找出来的内容执行一次命令ls -lh ,{}代表查找到的内容,\结束 find ./ -perm /4000 -exec cp

Pycurl error: “The requested URL returned error: 403 Forbidden”

一个人想着一个人 提交于 2019-12-02 14:22:59
When I try to install PHP 7.2 on redhat 6.8, this error appears: Not loading "rhnplugin" plugin, as it is disabled Loading "product-id" plugin Loading "refresh-packagekit" plugin Loading "search-disabled-repos" plugin Loading "subscription-manager" plugin Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Config time: 0.131 Yum Version: 3.2.29 Could not retrieve mirrorlist http://cdn.remirepo.net/enterprise/6/php72/mirror error was 14: PYCURL ERROR 22 -

Linux free shows high memory usage but top does not

僤鯓⒐⒋嵵緔 提交于 2019-12-02 14:11:41
On RedHat Linux 6.2 I'm running free -m and it shows nearly all 8GB used total used free shared buffers cached Mem: 7989 7734 254 0 28 7128 -/+ buffers/cache: 578 7411 Swap: 4150 0 4150 But at the same time in top -M I cannot see any processes using all this memory: top - 16:03:34 up 4:10, 2 users, load average: 0.08, 0.04, 0.01 Tasks: 169 total, 1 running, 163 sleeping, 5 stopped, 0 zombie Cpu(s): 0.7%us, 0.3%sy, 0.0%ni, 98.6%id, 0.4%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 7989.539M total, 7721.570M used, 267.969M free, 28.633M buffers Swap: 4150.992M total, 0.000k used, 4150.992M free, 7115.312M

PIL /JPEG Library: “decoder jpeg not available”

夙愿已清 提交于 2019-12-02 14:06:30
I tried to use PIL to do some JPEG work in my django app with PIL but I'm getting this IOError.. not sure what to do. ""decoder jpeg not available"" Am I missing the JPEG decoder from my server? If so, how do I fix it? You need to install jpeg library first and reinstall your PIL. For example, I'm using CentOS, to install libjpeg, I run sudo yum install -y libjpeg-devel It depends on what kind of linux you are using. And here you have to remove the old PIL rm -rf /usr/lib/python2.6/site-packages/PIL-1.1.7-py2.6-linux-x86_64.egg/ Then install the PIL sudo easy_install PIL I have found this

Unzipping a file from C++ on Redhat: alternatives to system()

一个人想着一个人 提交于 2019-12-02 13:24:46
问题 I need to unzip a file while running a C++ program (as described in Waiting for unzip to finish before carrying on C++ code on a RedHat machine) To do this I currently do something like this: system("unzip /usr/bin/File/ZippedFile.gz -d /usr/bin/File/) Which unzips "/usr/bin/File/ZippedFile.gz" to "/usr/bin/File/ZippedFile" with no problems. This works fine. However I have noticed that many people seem to say that using system() is taboo. People don't seem to like it as due to security and