mount fastcgi_cache to memory tmpfs for Nginx
I need more speed on nginx, the speed faster than the disk is memory, so I create a tmpfs, and put all the cache file into it.
How to find the oldest and newest file in directory in Linux shell
Complex way, but allowed you to customise the output. Simple and shorter way Extra: Find the newest files in shell
Installing MongoDB 4.2 on CentOS 7
I’m following the official mongoDB manual to make the installation. I’m using XFS filesystem with RAID10 on my machine, that’s the official document recommended. Paste the code. If you receive these errors You may solve using this solution on transparent_hugepage always or from the official document
Set Timezone correctly in CentOS 7
Every time after you finished install a fresh copy of Linux, it will give you UTC-0, so you need to set the timezone to make your software run correctly, like log with correct date. Check current date time in Linux List current support timezones in Linux Set the timezone Choose one fo the timezone from …
Create Database and User in MySQL or MariaDB in shell
I write this because just a note or cheatsheet for me to copy and paste from here to make my life easier. Every time when migrate website from one server to one server, I need to recreate the user and database before insert back to the new host.
17 Ways to Using ‘find’ to return filenames without extension in Linux
I found many ways to return the almost same results. I just note down here as my cheatsheet to use next time.
How to update php cli in DirectAdmin
Check the current version PHP CLI version in shell From the official DirectAdmin help page ,https://help.directadmin.com/item.php?id=2094 the way to install multiple version of PHP in the machine. Set the php1_release to the version The version to set as the php1_release will be the version in CLI You may modify the /usr/local/directadmin/custombuild/options.conf Re-compile all the PHP …
mount: wrong fs type, bad option, bad superblock on CentOS 7
When you are mounting your nfs in CentOS, and this error appeared Reason for error You do not have NFS util in your machine Solution
ERROR: current transaction is aborted, commands ignored until end of transaction block (PG::InFailedSqlTransaction)
I’m trying to insert new row by using the import function from discourse, create_categories. It throw me this error. What cause this error appear ? I’m using this way to restore the docker data for keep testing on importing Full error message from console Solution In many cases, it should be corrupted in PostgreSQL database, …
ERROR: current transaction is aborted, commands ignored until end of transaction block (PG::InFailedSqlTransaction) Read More »