Restart Start Stop MySQL Server from Command Line, macOS, Linux

Mysql Mariadb Restart Start Stop

To restart, start or stop MySQL or mariadb database servers from the command line, type the following at the shell prompt… On Linux start/stop/restart from the command line: /etc/init.d/mysqld start /etc/init.d/mysqld stop /etc/init.d/mysqld restart Some Linux flavors offer the service command too service mysqld start service mysqld stop service mysqld restart or service mysql start…

Read More

Block xmlrpc.php and wp-login.php via NGINX

Block Xmlrpc Wp Login Nginx

You can block xmlrpc.php and wp-login.php via NGINX with the configurations below, what’s good about this approach is that it prevents brute force attacks at the NGINX server level without any PHP/MySQL resources being used. xmlrpc.php for NGINX location = /xmlrpc.php { deny all; } To allow JetPacks IP addresses through adjust the config to…

Read More

Set hostname and fqdn in Ubuntu 18.04 & 20.04 & 22.04

Hostname Fqdn Ubuntu

Hostname in Ubuntu 18.04 & 20.04 & 22.04 You can find and change the hostname with the commands hostname or hostnamectl in Ubuntu 18.04 & 20.04, if you run the command on its own it will tell you what the current name is, the example below is  named racknerd-la hostnamectl root@racknerd-la:~# hostnamectl Static hostname: racknerd-la…

Read More