Set Hostname in Centos 7 Rumi, May 11, 2019 CentOS 7 only allows Fully Qualified Domain Names (FQDN’s). Acceptable values include lower-case letters a to z, numbers 0 to 9, the period, and the hyphen, and between 2 and 63 characters. At the console, type: hostnamectl set-hostname my.new-hostname.server NOTE: Replace my.new-hostname.server with your chosen hostname. Check the Hostname hostnamectl Related Administrations Configurations (Linux) CentOSCentOS 7
Install phpSysInfo on Debian/Ubuntu May 19, 2023 Log into the Debian/Ubuntu device Run the following commands in a terminal:# update repositories and install any available software updates sudo apt update sudo apt upgrade # install Apache HTTPD sudo apt install apache2 # install PHP components sudo apt install php7.3 php7.3-xml # download phpSysInfo wget https://github.com/phpsysinfo/phpsysinfo/archive/v3.3.2.zip # extract v3.3.2.zip sudo… Read More
Bash Script To Restart Linux Server Services December 21, 2021 Here’s the command line code to create the file in nano: sudo nano /opt/launch-crashed-services.sh Here is the bash script. #!/bin/bash service mysql status | grep ‘active (running)’ > /dev/null 2>&1 if [ $? != 0 ] then sudo service mysql restart > /dev/null fi service nginx status | grep ‘active… Read More
Ubuntu 18.04: Disable Netplan switch back to networking /etc/network/interfaces February 24, 2020June 17, 2020 The following procedure works for Ubuntu 18.04 (Bionic Beaver) I. Reinstall the ifupdown package: # apt-get update # apt-get install ifupdown II. Configure your /etc/network/interfaces file with configuration stanzas such as: source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback allow-hotplug enp0s3 auto enp0s3 iface enp0s3 inet static address 192.168.1.133 netmask 255.255.255.0 broadcast 192.168.1.255… Read More