Tes Performa Server Menggunakan Apache Benchmarking

ab -c 1 -n 100 https://www.antorij.com/

[antorij@antorij-centos6 ~]$ ab -c 1 -n 100 https://www.antorij.com/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, zeustech.net/
Licensed to The Apache Software Foundation, apache.org/

Benchmarking localhost (be patient).....done

Server Software:        Nginx
Server Hostname:        localhost
Server Port:            80

Document Path:          /
Document Length:        31698 bytes

Concurrency Level:      1
Time taken for tests:   26.170 seconds
Complete requests:      100
Failed requests:        0
Write errors:           0
Total transferred:      3190000 bytes
HTML transferred:       3169800 bytes
Requests per second:    3.82 [#/sec] (mean)
Time per request:       261.701 [ms] (mean)
Time per request:       261.701 [ms] (mean, across all concurrent requests)
Transfer rate:          119.04 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   248  262  11.8    260     324
Waiting:      201  214  11.7    211     276
Total:        248  262  11.8    260     324

Percentage of the requests served within a certain time (ms)
  50%    260
  66%    263
  75%    265
  80%    265
  90%    269
  95%    276
  98%    310
  99%    324
 100%    324 (longest request)
[antorij@antorij-centos6 ~]$

Solusi Can’t create database (errno: 13) pada MySQL

Secara default data mysql tersimpan di /var/lib/mysql , namun karena alasan kemudahan backup dan kapasitas saya mengubahnya di partisi lain yang termount di /mysqldata/. Untuk keperluan tersebut saya menjalankan perintah berikut:

sed -i 's/datadir=\/var\/lib\/mysql/datadir=\/ripanel\/mysqldata/g' /etc/my.cnf
mkdir -p /mysqldata
/etc/init.d/mysqld stop
cp -rap /var/lib/mysql/* /mysqldata
chown mysql.mysql /mysqldata 
/etc/init.d/mysqld start

» Read more

Cara Install Virtualbox di CentOS 6.x

[root@centos ~]# cd /usr/src/kernels/
[root@centos kernels]# ls
2.6.32-504.el6.i686
[root@centos kernels]# export KERN_DIR=/usr/src/kernels/2.6.32-504.el6.i686
[root@centos kernels]# service vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Removing old VirtualBox pci kernel module [ OK ]
Removing old VirtualBox netadp kernel module [ OK ]
Removing old VirtualBox netflt kernel module [ OK ]
Removing old VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel modules [ OK ]
Starting VirtualBox kernel modules [ OK ]
[root@centos kernels]#

yum update kernel, Cara Update Kernel di Centos

[root@centos ~]# yum update kernel
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Update Process
Loading mirror speeds from cached hostfile
 * base: mirror.vastspace.net
 * epel: ftp.cuhk.edu.hk
 * extras: mirror.vodien.com
 * updates: centos.mirror.secureax.com
Resolving Dependencies
--> Running transaction check
---> Package kernel.i686 0:2.6.32-504.3.3.el6 will be installed
--> Processing Dependency: kernel-firmware >= 2.6.32-504.3.3.el6 for package: kernel-2.6.32-504.3.3.el6.i686
--> Running transaction check
---> Package kernel-firmware.noarch 0:2.6.32-504.el6 will be updated
---> Package kernel-firmware.noarch 0:2.6.32-504.3.3.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch        Version                    Repository    Size
================================================================================
Installing:
 kernel               i686        2.6.32-504.3.3.el6         updates       27 M
Updating for dependencies:
 kernel-firmware      noarch      2.6.32-504.3.3.el6         updates       14 M

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       1 Package(s)

Total download size: 41 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): kernel-2.6.32-504.3.3.el6.i686.rpm                |  27 MB     04:49     
(2/2): kernel-firmware-2.6.32-504.3.3.el6.noarch.rpm     |  14 MB     05:13     
--------------------------------------------------------------------------------
Total                                            69 kB/s |  41 MB     10:11     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : kernel-firmware-2.6.32-504.3.3.el6.noarch                    1/3 
  Installing : kernel-2.6.32-504.3.3.el6.i686                               2/3 
  Cleanup    : kernel-firmware-2.6.32-504.el6.noarch                        3/3 
  Verifying  : kernel-2.6.32-504.3.3.el6.i686                               1/3 
  Verifying  : kernel-firmware-2.6.32-504.3.3.el6.noarch                    2/3 
  Verifying  : kernel-firmware-2.6.32-504.el6.noarch                        3/3 

Installed:
  kernel.i686 0:2.6.32-504.3.3.el6                                              

Dependency Updated:
  kernel-firmware.noarch 0:2.6.32-504.3.3.el6                                   

Complete!
[root@centos ~]#

locate, Cara Mencari Files dan Folder di Linux dengan Cepat

Pernahkah kita melakukan pencarian file/ folder di Windows mengunakan search files and folder? Prosesnya sangat lama kan? apalagi HDD kita besar. Nah jika di linux pencarian file seperti ini sangat cepat dengan menggunakan mlocate.

Pencarian menggunakan mlocate ini sangat cepat karena mlocate merupakan program database list semua files dan folder yang ada di linux. Program semacam ini jika di Windows 98/ME/NT4/2000/XP/Vista/7 bisa menggunakan Locate32 buatan Janne Huttunen. » Read more

1 2 3 4 5