The RedHat linux client that will connect to a NFS server. Needs to have portmap and if you dont want dynamic ports, enter static ports into /etc/sysconfig/nfs, for example: RQUOTAD_PORT=875 LOCKD_TCPPORT=32803 LOCKD_UDPPORT=32769 MOUNTD_PORT=892 STATD_PORT=662 STATD_OUTGOING_PORT=2020 1. Start portmap service portmap […]
memcached 1.4.13 rpm
I have compiled the rpm for CentOS/RedHat 5.x 32bits and 64bits The steps are to create a rpm package from source. If you need to just install, download it x64bits x32bits Requires # yum install libevent livevent-devel (make sure its […]
Linux network tools
This is a small list of some really nice linux tools I recommend every sysadmin to have somewhere. dstat Combines vmstat, iostat, ifstat, netstat information and more http://dag.wieers.com/home-made/dstat/#documentation vnstat The best to monitor how much data was transfered tx/rxhttp://humdi.net/vnstat/ iftop […]
File cleanup script for Linux
Sometimes disks fill up with logs for example, and we the administrators have to login sometimes even wake up just to delete log files! Well this script solves the problem. In this case I used to cleanup Glassfish log files. […]
check_file_age
I wrote to scripts with the same idea, to monitor a file age, I have written it also in vbs in the past. Now I did it in bash and php. BASH Version, example: check_file_age.sh /opt/solr-3.4.0/app/solrrioshow/conf/dataimport.properties 1440 1441 UPDATED: Its […]
change linux hostname
change linux RedHat / CentOS hostname vim /etc/sysconfig/network HOSTNAME=servername vim /etc/hosts 10.10.10.10 servername hostname servername verify hostname service network restart
add new disk in linux
This is without using LVM. try fdisk -l to find the new disk path (as in /dev/sdxx) # fdisk -l use fdisk /dev/sdxx to create partition. # fdisk /dev/sdd1 n p 1 , t,83 w use mkfs to create a […]