Systemctl Start a Service on Boot
To enable a service on boot, run systemctl enable SERVICE_NAME To disable a service from starting on boot, run systemctl disable SERVICE_NAME…
To enable a service on boot, run systemctl enable SERVICE_NAME To disable a service from starting on boot, run systemctl disable SERVICE_NAME…
Create init file. touch /etc/rc.d/init.d/prometheus chmod 755 /etc/rc.d/init.d/prometheus vi /etc/rc.d/init.d/prometheus Add following #!/bin/bash # # /etc/rc.d/init.d/prometheus # # Prometheus monitoring server #…
For non cpanel server, install perl modules On Ubuntu Once we have requirements installed, install csf with See csf
To search for available packages, run apt-cache search PKG_NAME Example boby@sok-01:~$ apt-cache search wget devscripts – scripts to make the life of…
Here is some example of using curl to login to site, use cookie to do further requests. curl -k –cookie-jar ./cookies_hotfile –data…
chown command is ued to change ownership of a file or folder In this example ownership of folder public_html to username and…
yum install at Enable atd [root@server12 ~]# service atd status atd is stopped [root@server12 ~]# chkconfig –list | grep atd atd 0:off…
To test if pop3 mailbox work using telnet, use telnet MAIL_SERVER_IP 110 user YOUR_EMAIL_ADDRESS pass YOUR_EMAIL_PASSWORD Once logged in, you can use…
To auto upgrade software packages in Ubuntu/Debian, install apt install -y unattended-upgrades Edit vi /etc/apt/apt.conf.d/50unattended-upgrades In this file, you can configure various…
rpmquery command allow you to check if a specific rpm package installed on your computer. rpmquery PKG_NAME Example See rpm
PowerDNS is an OpenSource DNS server. Update apt repo apt-get update && apt-get upgrade -y On Ubuntu, systemd-resolved listen to port 53.…