start cli
redis-cli
show keys
KEYS
showo keys starting with blog
KEYS blog*
clear all keys (delete all from redis)
flushall
Friday, March 30, 2018
Saturday, March 3, 2018
change jvm options
sudo vi jvm.options
Wednesday, November 29, 2017
Elastic search start stop
Start
sudo service elasticsearch start
Stop
sudo service elasticsearch stop
sudo service elasticsearch start
Stop
sudo service elasticsearch stop
Thursday, October 5, 2017
show process memory usage ubuntu
ps aux --sort=-%mem | awk 'NR<=10{print $0}'
Tuesday, September 26, 2017
remove (delete) folder and its coontent in ubuntu terminal
sudo rm -r
Tuesday, September 12, 2017
copy content of folder to another folder
see what owner of files is (for sake).
If not cd to the dest folder and use
sudo chown www-data:www-data *
sudo cp -a /source/. /dest/
this should copy all files and in my case assign right owner.If not cd to the dest folder and use
sudo chown www-data:www-data *
Nginx test && reload
sudo nginx -t && sudo
nginx -s reload
Subscribe to:
Posts (Atom)