WARNING: The script pip3.8 is installed in ‘/usr/local/bin’ which is not on PATH

This question has been answered on the serverfaults forum: Here is a link to the question. You need to add the following line to your ~/.bash_profile or ~/.bashrc file. export PATH=”/usr/local/bin:$PATH” You will then need to profile, do this by either running the command: source ~/.bash_profile Or by simply closing your terminal and opening a … Read more

How to reboot CentOS 7 with Ansible?

You’re likely not doing anything truly wrong, it’s just that /sbin/reboot is shutting down the server so quickly that the server is tearing down the SSH connection used by Ansible before Ansible itself can close it. As a result Ansible is reporting an error because it sees the SSH connection failing for an unexpected reason. … Read more

Cannot install docker in a RHEL server

Building on top of @user3495504’s answer, what we did to fix the problem was adding an entry on top of the file /etc/yum.repos.d/docker-ce.repo, with this content: [centos-extras] name=Centos extras – $basearch baseurl=http://mirror.centos.org/centos/7/extras/x86_64 enabled=1 gpgcheck=1 gpgkey=http://centos.org/keys/RPM-GPG-KEY-CentOS-7 Then the installation command: yum -y install slirp4netns fuse-overlayfs container-selinux was successful. [Edit] enabled gpgcheck

What benefit do I get from JSVC over just using systemd?

In general, most of the functionality provided by jsvc is provided by systemd, with the exception of opening of privileged ports (see below). If possible, it is a very good idea to switch to using systemd functionality directly, since things become simpler and more efficient. Your unit file looks mostly OK, with the exception of … Read more

Unable to start postgresql service on CentOS 7

Make sure you have installed all packages correctly and updated yum repository sections [base] and [updates] before installation as it mentioned in the guide . We have CentOS 7 with PostgreSQL 9.5 and it works perfectly fine with following steps: vi /etc/yum.repos.d/CentOS-Base.repo yum localinstall http://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-2.noarch.rpm yum list postgres* yum install -y postgresql95-server.x86_64 postgresql95-contrib.x86_64 postgresql95-libs.x86_64 /usr/pgsql-9.5/bin/postgresql95-setup … Read more

Running Nginx as non root user

Add/Change the following in your /etc/nginx/nginx.conf: user nginx; You should create the user and grant permissions on the webroot directories recursively. This way only master process runs as root. Because: Only root processes can listen to ports below 1024. A webserver typically runs at port 80 and/or 443. That means it needs to be started … Read more

Upgrade docker on CentOS 7 [closed]

Update to upgrade docker CentOS 7.4 sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-selinux docker-engine-selinux docker-engine sudo yum install -y yum-utils device-mapper-persistent-data lvm2 sudo yum-config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum install docker-ce sudo systemctl start docker sudo systemctl enable docker sudo systemctl status docker Refer: https://docs.docker.com/install/linux/docker-ce/centos/

Install and configure supervisord on centos 7 to run Laravel queues permanently

here is how to install and config supervisord on centos 7 to run Laravel queues permanently: easy_install supervisor yum install supervisor vim /etc/supervisord.conf edit section program as following: [program:laravel-worker] command=php /path/to/app.com/artisan queue:work process_name=%(program_name)s_%(process_num)02d numprocs=8 priority=999 autostart=true autorestart=true startsecs=1 startretries=3 user=apache redirect_stderr=true stdout_logfile=/path/to/log/worker.log systemctl enable supervisord to autorun at start systemctl restart supervisord to restart the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)