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.
Author Archives: juzhax
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 Continue reading “Set Timezone correctly in CentOS 7”
curl: (35) error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure in MacOS
I would like to run ab test on my website on MacOS Upgrade OpenSSL in MacOS
How to remove outdated installed versions of Homebrew packages in MacOS?
The cleanup (brew cleanup) command will remove outdated installed package versions. To affect a particular package/formula, you may supply a formula name like so: brew cleanup $FORMULA. brew cleanup only cleans outdated package versions if you have the newest version installed, so first brew upgrade then brew cleanup It saved me 5GB at /usr/local/
Understanding fastcgi_cache_path, levels, keys_zone, max_size, inactive, use_temp_path
A note for myself to exaplain fastcgi_cache_path, levels, keys_zone, max_size, inactive, use_temp_path As documentation said, nginx will keep all active keys and information about data are stored in a shared memory zone, whose name and size are configured by the keys_zone parameter. As a matter of completeness, lets break down per part /var/cache/nginx is the place where the actual cache stored. Inside the Continue reading “Understanding fastcgi_cache_path, levels, keys_zone, max_size, inactive, use_temp_path”
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.
How to empty and refresh Bitnami in MacOS in terminal shell?
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.
