June 2019
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930

Categories

June 2019
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930

selinux nginx

Restart Nginx and bind() to 0.0.0.0:8088 failed (13: Permission denied)

First declare: If you do not use SELinux you can skip this article.

The Nginx service is installed on ContOS 7. For the project, you need to modify the default 80 port of Nginx to 8088. After modifying the configuration file, restart the Nginx […]

Check if host is a live bash script

!/bin/bash # TCP-ping in bash (not tested) HOSTNAME=”$1″ PORT=”$2″ if [ “X$HOSTNAME” == “X” ]; then echo “Specify a hostname” exit 1 fi if [ “X$PORT” == “X” ]; then PORT=”22″ fi exec 3<>/dev/tcp/$HOSTNAME/$PORT if [ $? -eq 0 ]; then echo “Alive.” else echo “Dead.” fi exec 3>&- […]