You may accidentally add the node_modules or you forgot to add the node_modules directory to .gitignore list, no worry, you may remove it after you pushed to the git. First, add the node_modules in to the .gitignore After added the /node_modules and save it.
Category Archives: Linux
How to rebuild /etc/yum.repos.d in CentOS
If you remove all the files in /etc/yum.repos.d you may see this error. You can restore using the way below. Check your version and reinstall using this way.
Publishing Failed in WordPress
When you post in WordPress with over 5MB text post, you may receive this error with red color. or you found in your php error log This is because WordPress need more time to execute and process and formatting your post over the maximum execution time. You may use the way below to solve this. Continue reading “Publishing Failed in WordPress”
File ./vendor/autoload.php missing or not readable. in centminmod phpMyAdmin
After installed the phpMyAdmin in centminmod, I saw this error message. File ./vendor/autoload.php missing or not readable. Most likely you did not run Composer to install library files. I like to fix it manually and access to my server shell and run these command. cd /usr/local/nginx/html/1111_mysqladmin12345 git pull rm -rf composer.phar wget -cnv https://getcomposer.org/composer.phar -O Continue reading “File ./vendor/autoload.php missing or not readable. in centminmod phpMyAdmin”
Install Tinyproxy on Centos 7
mongoexport and mongoimport with query from one host to one host
I would like to query the data that I need only from a server to another server, and I just use one line of command in linux shell mongoexport -h fromHost.com -d fromDB -c fromCollection -q ‘{ count: { $gte: 1 } }’ | mongoimport -h toHost.com -d toNewDB -c toNewCollection If your date is Continue reading “mongoexport and mongoimport with query from one host to one host”
Fast way to find duplicate data in MongoDB
I need to find out the duplicate data content in my 40 Millions records, then I can make the unique index to my name field. > db.collecton.aggregate([ … { $group : {_id : “$field_name”, total : { $sum : 1 } } }, … { $match : { total : { $gte : 2 } Continue reading “Fast way to find duplicate data in MongoDB”
ERROR: failed to ptrace(PEEKDATA) pid 17402: Input/output error (5)
You may found this error from your php-fpm and the php-fpm crash tail /var/log/php-fpm/error.log [15-May-2016 12:24:13] ERROR: failed to ptrace(PEEKDATA) pid 17402: Input/output error (5) [15-May-2016 12:24:13] ERROR: failed to ptrace(PEEKDATA) pid 17777: Input/output error (5) [15-May-2016 12:24:13] ERROR: failed to ptrace(PEEKDATA) pid 18886: Input/output error (5) [15-May-2016 12:25:53] ERROR: failed to ptrace(PEEKDATA) pid 17232: Continue reading “ERROR: failed to ptrace(PEEKDATA) pid 17402: Input/output error (5)”
How to clear nginx cache manually ?
Normally I like to do manually job. assume that the default path of your nginx cache is /var/cache/nginx This will clear all your cache in one line. Delete a single file from nginx cache If you just want to delete a single file from nginx cache, you can try this. Then it will show something Continue reading “How to clear nginx cache manually ?”
How to resize OVH Public Cloud disk in CentOS 7 linux
I’m going to resize 100G SSD to 150GB SSD in Public Cloud First I check the current mounted disk [root@db1 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 40G 2.4G 36G 7% / devtmpfs 3.8G 0 3.8G 0% /dev tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 3.9G 17M 3.8G 1% /run tmpfs Continue reading “How to resize OVH Public Cloud disk in CentOS 7 linux”
