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
FTP upload
ftp-upload -h ftp.kadalhamil.com -u ftpuser –password kecebongpremium -d BACKUP *.iso &
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
hak akses untuk folder ‘upload’ pada WP
chown -R kadalsumbing:www-data uploads/
chmod -R 755 upload/
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;
}
Hello Dunyo…!!!
“…merdeka adalah, selamet nang ndunyo lan nang akherat …”