Oct 21 2017

How To Install and Configure Redis

sudo apt-get update

sudo apt-get install build-essential tcl

apt-get install build-essential tcl

curl -O http://download.redis.io/redis-stable.tar.gz

tar xzvf redis-stable.tar.gz

cd redis-stable

make

make test

make install

mkdir /etc/redis

cp  redis.conf /etc/redis

supervised systemd

dir /var/lib/redis

vi  /etc/systemd/system/redis.service

[Unit]
 Description=Redis In-Memory Data Store
 After=network.target

[Service]
 User=redis
 Group=redis
 ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
 ExecStop=/usr/local/bin/redis-cli shutdown
 Restart=always

[Install]
 WantedBy=multi-user.target

adduser --system --group --no-create-home redis

mkdir /var/lib/redis

chown redis:redis /var/lib/redis

chmod 770 /var/lib/redis

systemctl start redis

systemctl status redis

redis-cli

ping

get test

set test "It's working!"

exit

systemctl restart redis

systemctl enable redis

 


Oct 12 2017

FTP upload

ftp-upload -h ftp.kadalhamil.com -u ftpuser –password kecebongpremium -d BACKUP *.iso &


Oct 12 2017

multi gateway

ifconfig eth0 202.152.18.xxx netmask 255.155.255.224

ifconfig eth1 192.168.46.xxx netmask 255.255.255.0

route add default gw 202.152.18.1

route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.46.1 eth1

 

 


Oct 6 2017

Antara anak tercinta, aku dan HULK… ‘salbud deh’


Oct 6 2017

hak akses untuk folder ‘upload’ pada WP

chown -R kadalsumbing:www-data uploads/

chmod -R 755 upload/


Oct 5 2017

Setting alias di NGINX

rewrite /wp-admin$ $scheme://$host$uri/ permanent;

location ~ ^/files/(.*)$ {
try_files /wp-content/blogs.dir/$uri /wp-includes/ms-files.php?file=$1 ;
}

location ^~ /blogs.dir {
internal;
alias /home/kadal/web/kadalbencong.net/public_html/wp-content/blogs.dir ;
access_log off;
log_not_found off;
expires max;
}


Oct 5 2017

Hello Dunyo…!!!

“…merdeka adalah, selamet nang ndunyo lan nang akherat …”