August 2017
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  

Categories

August 2017
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  

Essay – Some people believe laws change human behaviour. Do you agree with it?

Some people believe laws change human behaviour. Do you agree with it?

Few people are of the view that the rule of the land changes the conduct and the nature of persons. I, totally agree with this statement because the presence of law builds up the confidence among the citizens and make the society disciplined. […]

pvresize command

Resolution

pvresize is a tool to resize Physical Volume which may already be in a volume group and have active logical volumes allocated on it.

Expand the PV on /dev/sda1 after enlarging the partition with fdisk:

pvresize /dev/sda1

Shrink the PV on /dev/sda1 prior to shrinking the partition with fdisk (ensure that the PV size […]

SSH vulnerabilities: HMAC algorithms and CBC ciphers

e defaults in the various RHEL version differ and the current default can be found in manual page for sshd_config. For example RHEL6:

The default is: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128, aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc, aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se

You can remove the CBC ciphers by adding the line for RHEL7:

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,arcfour

The line for RHEL6:

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,arcfour

The line for RHEL5 (note the […]

Changing temporary directory for sort – bash

I was sorting a very big file using Linux sort command and unfortunately the sort failed as there was not enough space on my /tmp directory.

$ sort -t “|” -k5 ka.log.32323112.out > ka.log.32323112.out sort: /tmp/sort1928700448: write error: No space left on device

just to mention, sort by default uses /tmp for temporaries.

So, how […]

MySQL InnoDB engine B + tree index simple finishing instructions

There are several types of InnoDB engine tables in MySQL (the following index, no special instructions, refers to the InnoDB engine table index.) 0 = Secondary Index, 2-level index, 1 = Clustered Index, clustered index 2 = Unique Index, Unique Index 3 = Primary Index, Primary Key Index 32 = Full-text Index, Full Index 64 […]

Nginx server 10000 concurrent optimization test (ab test tool)

1.nginx monitoring module

1) Compile nginx with the parameter –with-http_stub_status_module

#/usr/local/nginx/sbin/nginx -V ./configure –user=www –group=www –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_mo ./configure –prefix=/usr/local –user=nginx –group=nginx –with-http_ssl_module –with-http_realip_module –http-client-body-temp-path=/usr/local/var/tmp/nginx/client –http-proxy-temp-path=/usr/local/var/tmp/nginx/proxy –http-fastcgi-temp-path=/usr/local/var/tmp/nginx/fcgi –http-scgi-temp-path=/usr/local/var/tmp/nginx/scgi –http-uwsgi-temp-path=/usr/local/var/tmp/nginx/uwsgi –with-http_geoip_module –with-http_stub_status_module

2) Modify the nginx configuration file and add the monitoring status configuration

Add the following code to the server block of nginx.conf

location /nginx_status […]

Linux server found strange port handling methods

Generally in the beginning of the need for their own company’s IT environment to have a general understanding of 1-2 months after the need to open the port has a clear understanding of what the port is used to do, whether it is illegal open port , Their own mind to be the number of […]