Questions tagged [centos]

CentOS (Community Enterprise Operating System) is based on the Red Hat Enterprise Linux operating system. QUESTIONS MUST BE ABOUT RUNNING PROGRAMS UNDER CENTOS. Questions about server administration may be asked on https://serverfault.com

CentOS is a community-supported, mainly free software operating system based on Enterprise Linux (RHEL). It exists to provide a free enterprise class computing platform and strives to maintain 100% binary compatibility with its upstream distribution. CentOS stands for Community Enterprise Operating System.

Currently supported versions:

  • CentOS 5 (April 2007 - March 2017)
  • CentOS 6 (July 2011 - November 2020)
  • CentOS 7 (July 2014 - June 2024)
12486 questions
69
votes
2 answers

How to open port in Linux

I have installed and web application which is running on port 8080 on RHEL (centOS). I only have command line access to that machine. I have tried to access that application from my windows machine from which I am connected to server via…
Niraj Chapla
  • 2,149
  • 1
  • 21
  • 34
68
votes
1 answer

Docker on CentOS 7.2: kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1

I'm running Docker on CentOS 7, from time to time there's the following message displayed: Message from syslogd@dev-master at Mar 29 17:23:03 ... kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1 I've googled a lot, read…
shizhz
  • 11,715
  • 3
  • 39
  • 49
68
votes
2 answers

GIT get the commit hash prior to a specific commit

git 1.7.1 git show : gives me the file based on the commit hash provided I am trying to figure out how to bet the file of the previous commit before the one who's hash I have. I know I can always use the log to get all hashes and figure…
transilvlad
  • 13,974
  • 13
  • 45
  • 80
67
votes
15 answers

httpd Server not started: (13)Permission denied: make_sock: could not bind to address [::]:88

I am trying to start httpd server on centos 6. It throws following error : [root@machine ~]# service httpd start Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:88 (13)Permission denied: make_sock: could not bind to…
Nishu Tayal
  • 20,106
  • 8
  • 49
  • 101
66
votes
2 answers

How to list installed packages from a given repo using yum

I want to list all packages I have installed on a system from a given repo using yum. Usually to do this I use yum list installed | grep "something". But now I am faced with a problem. The repo I am interested in does not have that "something" for…
Mike Starov
  • 7,000
  • 7
  • 36
  • 37
66
votes
2 answers

nohup:ignoring input and appending output to 'nohup.out'

I want to start my server through nohup.php but the command is not running and displays following error nohup:ignoring input and appending output to 'nohup.out' I am using ssh through putty, this is what i am doing nohup php server1.php
user3809096
  • 817
  • 1
  • 7
  • 10
65
votes
2 answers

Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment

I downloaded Quokka Python/Flask CMS to a CentOS7 server. Everything works fine with command sudo python3 manage.py runserver --host 0.0.0.0 --port 80 Then I create a file /etc/init.d/quokkacms. The file contains following code start() { …
Dustin Sun
  • 5,292
  • 9
  • 49
  • 87
65
votes
3 answers

How to find files recursively by file type and copy them to a directory?

I would like to find all the pdf files in a folder. It contains pdf files inside and more directories that contain more as well. The folder is located on a remote server I have ssh access to. I am using the mac terminal but I believe the server I am…
lorless
  • 4,126
  • 8
  • 30
  • 41
63
votes
5 answers

How to display list of running processes Python?

How to display list of running processes Python with full name and active status? I tried this command: pgrep -lf python
MisterPi
  • 1,471
  • 5
  • 17
  • 23
62
votes
9 answers

Check if service exists with Ansible

I have an Ansible playbook for deploying a Java app as an init.d daemon. Being a beginner in both Ansible and Linux I'm having trouble to conditionally execute tasks on a host based on the host's status. Namely I have some hosts having the service…
EagleBeak
  • 6,939
  • 8
  • 31
  • 47
61
votes
2 answers

CentOS through a VM - no URLs in mirrorlist

I am trying to run a CentOS 8 server through VirtualBox (6.1.30) (Vagrant), which worked just fine yesterday for me, but today I tried running a sudo yum update. I keep getting this error for some reason: [vagrant@192.168.38.4] ~ >> sudo yum…
Eylon
  • 628
  • 1
  • 3
  • 7
61
votes
3 answers

Completely remove MariaDB or MySQL from CentOS 7 or RHEL 7

I installed MariaDB on CentOS 7 but I had some problems with some configuration, now it is completely misconfigured. Thus, I wanted to remove the MariaDB with “yum remove mariadb mariadb-server”, after that I reinstalled it with “yum install…
Stack Over
  • 751
  • 2
  • 6
  • 7
61
votes
11 answers

apache not accepting incoming connections from outside of localhost

I've booted up a CentOS server on rackspace and executed yum install httpd'd. Then services httpd start. So, just the barebones. I can access its IP address remotely over ssh (22) no problem, so there's no problem with the DNS or anything (I…
Phildo
  • 986
  • 2
  • 20
  • 36
61
votes
10 answers

Upgrade python without breaking yum

I recently installed Python 2.7.3 on a CentOS machine by compiling from source. Python 2.7.3 is installed at /opt/python2.7 and when I installed it I just changed /usr/bin/python to point to the new version. This apparently is wrong though because…
tbeauvais
  • 1,698
  • 4
  • 18
  • 22
60
votes
8 answers

docker exec -it returns "cannot enable tty mode on non tty input"

docker exec -it command returns following error "cannot enable tty mode on non tty input" level="fatal" msg="cannot enable tty mode on non tty input" I am running docker(1.4.1) on centos box 6.6. I am trying to execute the following…
user2118095
  • 763
  • 1
  • 7
  • 13