linux

Install NTP Server ON Redhat 6

It's so easy!!

Server

  • Install ntp

    #yum install ntpd
  • Configure ntp by restriction

    restrict 203.107.139.0 mask 255.255.254.0 nomodify notrap
  • Firewall Policy By Remote Server (UDP123)

Client

Just Recheck!

#ntpdate -d 203.11.11.1 

Finish!!

Reference 

CentOS / Red Hat Configure an NTP Client And Server

Address already in use: make_sock: could not bind to port 80

I often found the apache's error. 

Address already in use: make_sock: could not bind to port 80?

My solution is reboot server. But it's not practical because you may lose SLA. Here's correct solution.

#netstat -tulpn| grep :80
#killall -9 httpd
#/etc/init.d/httpd start

Replace ^m With newline

Open file with vi or vim

:%s/^m/\r/g

Please hold ctrl + m + v. That is ^M