Set NTP server on Linux

Set linux server time using ntp server

1 – Install ntpdate package
apt-get install ntpdate

2 – Configure time using ntpdate command
ntpdate pool.ntp.org

3 – Configure ntpdate on cron
crontab -e

@reboot /usr/sbin/ntpdate pool.ntp.org
@daily /usr/sbin/ntpdate pool.ntp.org

NGINX - To allow a specific User-Agent from one IP address only

Step 1: Define the Map BlocksAdd this configuration inside the http {} block of your /etc/nginx/nginx.conf file. This logic evaluates the in...

Mais vistos