In my program, I have a thread which has to continuously monitor the network interfaces therefore it continuosly uses getifaddrs() in a while loop. Most of the time my program works fine. However, sometimes getifaddrs() returns -1 and errNo = EBADF(bad file descriptor). In order to not exit my thread, I have temporarily replaced exit with continue(as I don’t want
Tag: rhel7
Node JS process running under PM2 and file permissions
I have a small node.js (v13.5.0) server running under PM2 (v4.4.0) on a RHEL 7.6 box. As a part of it’s function it writes a small CSV file to the disc for every incoming request. This app is writing these files with the perms (rw-r—–). The user I am having PM2 executing my process as has umask set to 0022.
SSH Key Exchange with alternate user
So I am using RHEL 7. I have two servers with the following user accounts root (obvious) admin I want the setup to work in the following manner. passwordless SSH from server 1 to server 2 using the admin user, but the SSH initiation is done from the root user always. We are not allowed to do ssh key exchange
Complete removal of php and all of it’s dependencies o RHEL7
I am trying to uninstall php and all of its modules from a RHEL7 server completely and do a clean install later. Things I have tried till now using yum – sudo yum remove ‘php*’. After the above command i can still see that php is not uninstalled. Please help. Answer You could also add this option to /etc/yum.conf: clean_requirements_on_remove=1.
Not able to create SSIS DB Catlog in linux RHEL 7
I am not able to create SSIS DB Catalog on my MS SQL Server which is installed on Linux RHEL 7 Server. Though I have installed SSIS on Linux RHEL 7. Whenever I am trying to create SSIS DB Catalog i am getting this error. TITLE: Microsoft SQL Server Management Studio The path to the catalog backup file could not
Running jre keytool results in the Permission Denied error
I have a script running the command: Got the error: Checked all permission on the directories and keytool – all are executable. I am at RHEL-7 Answer A lot of Distributions do not allow files to be executed from within the /tmp directory. Either move the jre out of /tmp (why is it even in there?) or make it executable
Demon function on RHEL 7
I have script in RHEL 6 which is using default function such as /etc/rc.d/init.d/functions can we use same functions on RHEL 7 to start the daemon process? . Also let me know, if there is any difference for /etc/rc.d/ between RHEL 6 and RHEL 7? Answer This file is provided by the initscripts package, which isn’t included by default in
Altinstall of Python 2.7.13 on RHEL7 just launches system version
I’m doing an altinstall of Python 2.7.13 on RHEL7 which has 2.7.5 installed. Here’s how I’m building from source: However, even when I tried to access this altinstall directly, I’m getting the system Python, rather than the altinstall. I’ve put SELinux into permissive mode and get the same result. and when I enter the interpreter I’m at a loss here.
PHP is_writable() function always returns false for a writable directory
I’m trying to install a PHP-based software package in a Red Hat 7 Amazon EC2 instance (ami-8cff51fb) that has had Apache 2.4.6 and PHP 5.4.16 installed on it using yum. The installation fails because it says a particular directory needs to be writable by the webserver with 0755 or 0775 permissions. The directory in question has 0775 permissions with root:apache