MariaDB / MySQL write and read Log files on Centos / Rocky Linux
By default, mariaDB never write logs hers for you. Sure, it’s her privacy that she doesn’t want others to know. However, you can enable her logging like this: Make your logs folder and change permission: Edit this file /etc/my.cnf.d/server.conf or /etc/my.cnf.d like as below: Restart your mariadb: Now, you have three file: /var/log/mariadb/error.log /var/log/mariadb/mysql.log /var/log/mariadb/slow.log…
Config Cyberpanel/ OpenLiteSpeed server to run NodeJS on port 80/443
Quick install MongoDB on Centos 8/ Rocky Linux in 1 minute
Config Kibana + Elasticsearch 100% working on Linux (Centos/ Rocky)
Install JAVA First, install Java 1.8. Check java, install if not exist: Open firewall TCP port 9200, 8200, and 5601 Install ElasticSearch: Install Elasticsearch: Config ELS: Save xml file then: Config tempdir to work with JAVA: Above for Elasticsearc 7.15. For newer Elasticsearch version maybe: Save elasticsearch file, then restart & check status: If everything…
Install AAPT service to read APK file information on Linux (Centos/ Rocky)
If you want to run aapt read apk file information: STEP 1: Download aapt-linux build-tool at https://androidaapt.com/STEP 2: Copy the entire lib64 folder to usr/lib64 on centosSTEP 3: Copy the aapt file to the usr/bin directory and then chmod +x aapt (755)Example reading file version: Example reading file package name: In your script (my example…
Install & Config Supervisor to keep terminal live to run script on Linux
You can keep a script (like as PHP or JS, Java,…) always live by Supervisor. To install Supervisor on Centos 8/ Rocky Linux: On Centos 7 use “yum” instead of “dnf”. Create a file myname.ini in folder /etc/supervisord.d/ with below content: Update data: Start program: If just start my-first-program: Check program status: You can restart…
How to setup hosts file for multiple domains on same IP?
Automated Database Backup (MariaDB, MySQL) on RHEL/Linux using Cron Job?
Have you thought about continuous database backup? Perhaps using the Control Panel is the choice of many people. But it will not be optimal in case you want to customize the backup file name. Or your server only runs MySQL, MariaDB (without Control Panel, no PHP,…). I will show you how to Automated Smart Database…