Config Cyberpanel/ OpenLiteSpeed server to run NodeJS on port 80/443
If you use LiteSpeed, you can run NodeJS project as a PHP project. Step 1: Add a domain (example domain.com) to your server You need to: Create a folder to upload your code. Or create by Cyberpanel admin tool (recommend). Add new DNS record (A) from domain to your server IP Step 2: Modify the…
Quick install MongoDB on Centos 8/ Rocky Linux in 1 minute
In Centos/ Rocky Linux terminal, run all bellow command: You can connect your DB by MongoDB Compass app in manual Change your MongoDB port and bind IP in: /etc/mongod.conf
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?
How to setup hosts file for multiple domains on same IP? On Linux, you can put all in one line. But on Windows, max domains number is 9 per line. To set multi domain to one IP, you need to do like that: To do it, you edit file “hosts” in this folder: C:\Windows\System32\drivers\etc on…
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…