Answers for "nginx configuration check command"

2

check if nginx is running

service nginx status
Posted by: Guest on August-16-2021
2

test nginx config mac

$ sudo nginx -t              
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Posted by: Guest on August-02-2021
0

Check the Nginx Configuration

$ kubectl get pods -n <namespace-of-ingress-controller>
NAME                                        READY     STATUS    RESTARTS   AGE
ingress-nginx-controller-67956bf89d-fv58j   1/1       Running   0          1m

$ kubectl exec -it -n <namespace-of-ingress-controller> ingress-nginx-controller-67956bf89d-fv58j -- cat /etc/nginx/nginx.conf
daemon off;
worker_processes 2;
pid /run/nginx.pid;
worker_rlimit_nofile 523264;
worker_shutdown_timeout 240s;
events {
    multi_accept        on;
    worker_connections  16384;
    use                 epoll;
}
http {
....
Posted by: Guest on March-29-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language