Skip to content

Author: tex

Installing nginx and php7 on Debian

First time, i will install nginx-extras (extended version of nginx): root@vm02:~# apt-get install nginx-extras   Adding dotdeb to apt sources list: root@vm02:~# echo “deb http://packages.dotdeb.org jessie all” >> /etc/apt/sources.list   Installing curl and adding dotdeb key for apt: root@vm02:~# apt-get install curl root@vm02:~# curl http://www.dotdeb.org/dotdeb.gpg | apt-key add – % Total % Received % Xferd…

Daily backup MySQL databases

I will use ‘mysql_config_editor’ for storing authentication credentials in an encrypted login path file named ‘.mylogin.cnf’. The file location is the ‘~/.mylogin.cnf’ (user home). The file can be read later by MySQL client programs to obtain authentication credentials for connecting to MySQL Server. The unencrypted format of the .mylogin.cnf login path file consists of option…

Ethernet RTL 8168 driver on CentOS

By default on CentOS 6.x is used 8169 instead of 8168 driver for Ethernet. Network device display (lspci output): [root@static89 ~]# lspci|grep Eth 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09) Loaded driver: [root@static89 ~]# lsmod|grep 816 r8169 74378 0 From dmesg output: r8169 Gigabit Ethernet driver 2.3LK-NAPI…

How to get all ip prefixes announced by AS

If you need all ip prefixes announced by AS number for routing, filtering or info purposes, you can use whois client from Linux with args ‘-i origin -T route’ Example: root@ns:~# whois AS9009 -i origin -T route |grep ‘route:’ route: 128.0.1.0/24 route: 138.99.211.0/24 route: 172.111.129.0/24 route: 172.111.130.0/24 route: 172.111.138.0/24 route: 172.111.140.0/24 route: 172.111.141.0/24 route: 172.111.148.0/24…

Webserver benchmark with wrk

What is wrk ? wrk is a modern HTTP benchmarking tool capable of generating significant load when run on a single multi-core CPU. It combines a multithreaded design with scalable event notification systems such as epoll and kqueue. An optional LuaJIT script can perform HTTP request generation, response processing, and custom reporting. You can get…