Posts

Showing posts with the label server

AIX : Check Process occupying a port

Ripped from here, for my own reminder: http://vistababa.wordpress.com/2008/09/14/which-process-is-using-the-port/ a. Show if the specified is being used. The hex number in the first column of the result is the address of protocol control block (PCB): #netstat -Aan | grep Port_Number b. Dsiplay the process who is holding the socket: #rmsock Address_of_PCB tcpcb Note: That rmsock, unlike what its name implies, does not remove the socket, if the socket is being used by any process. Instead of removing the socket, it just reports the process holding the socket. Also note that the second argument of rmsock is the protocol. It’s tcpcb in the example to indicate that the protocol is TCP. Example: #netstat -Aan | grep 23 f10000f3019c9b58 tcp 0 0 *.23 *.* LISTEN #rmsock f10000f3019c9b58 tcpcb The socket 0x19c9800 is being held by proccess 278614 (inetd). #ps -lp 278614 F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 240001 A 0 278614 364626 0 60 20 d121a400 468 – 0:00 inetd That's all ...

Installing Directadmin : The Manual Way

# # Directadmin installation - Alak # screen rm -f /usr/lib/libexpat.so ln -s /usr/lib64/libexpat.so /usr/lib/libexpat.so # Make /da directory as installation dir # mkdir /da cd /da wget http://www.directadmin.com/setup.sh chmod 755 setup.sh ./setup.sh UID: LID: FQDN: # Apache choose option 2 # with default configs for apache 2.2 and php5 cli # then wait till like 15 minutes (seriously wor..) # # Del existing mysql? YES # # after installation complete perform Auto updater in DirectAdmin # mkdir -p /usr/local/updatescript cd /usr/local/updatescript wget http://tools.web4host.net/update.script chmod 755 update.script ./update.script DATE * not neseccary ./update.script UPDATEME ./update.script CLAMAV # then, again, wait.. the script do its thingy.. # Next, to configure spams stuff.. # vi /etc/exim.conf # before primary_hostname = # add av_scanner = clamd:/tmp/clamd # after check_message: # WARNING! NOT acl_smtp_data = check_message # NOTE! BEFORE the 'accept' line. # add deny mes...