Skip to main content

Posts

Showing posts from September, 2019

Python in Linux (RHEL)

Ten years ago, the developers of the Python programming language decided to clean things up and release a backward-incompatible version, Python 3. They initially underestimated the impact of the changes, and the popularity of the language. Still, in the last decade, the vast majority of community projects has migrated to the new version, and major projects are now dropping support for Python 2. In Red Hat Enterprise Linux 8, Python 3.6 is the default. But Python 2 remains available in RHEL 8. Using Python in RHEL 8 To install Python, type   yum install python3 . To run Python, type   python3 . If that doesn’t work for you, or you need more details, read on! Python 3 In RHEL 8, Python 3.6 is the default, fully supported version of Python. It is not always installed, however. Similarly to any other available tool, use   yum install python3   to get it. Add-on package names generally have the   python3   prefix. Use   yum install python...

Services and daemons in Linux

WTF is a service or a daemon? Daemons are a kind of non-interactive process that runs in the background. They basically are detached from the keyboard and display. Services also do not need a terminal. They run in the background to provide some service like apache. The service here is the command’s target. Basically, it is the service you want to manage using systemctl . command What it does? status Returns the status of the service start Attempts to start the service  stop Stops the service restart Restarts the service reload Reloads the service’s configuration. This applies the new configuration. enable Enables autostart on boot disable Disables autostart on boot Service’s status Now, Let’s see the different statuses that every service could have.  Status Name Status Description loaded The service’s configuration files have been loaded successfully active The service is running or waiting f...