Difference between revisions of "Nginx -t"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Draft}}
+
{{lc}}
 +
*<code>[[nginx]] -t</code>
 +
*<code>nginx: the configuration file [[/etc/nginx/nginx.conf]] syntax is ok</code>
 +
*<code>nginx: configuration file /etc/nginx/nginx.conf test is successful</code>
  
  
* Restart: <code>[[systemctl restart]] nginx</code>
+
== Restart ==
 +
* <code>nginx -t && [[systemctl restart]] nginx && [[systemctl status nginx]]</code>
  
 +
===Outputs===
 +
nginx: [emerg] pcre_compile() failed: unrecognized character after (? or (?- in "^(?XXX.+)\.domain\.com$" at "XXX.+)\.domain\.com$" in [[/etc/nginx/sites- enabled/default]]:75
 +
nginx: configuration file /etc/nginx/nginx.conf test failed
  
 
== Related terms ==
 
== Related terms ==
 
* <code>[[sshd -T]]</code> or <code>[[sshd -t]]</code>
 
* <code>[[sshd -T]]</code> or <code>[[sshd -t]]</code>
* <code>[[visudo]]</code>
 
* <code>[[crontab -e]]</code>
 
 
* [[Named-checkconf]]
 
* [[Named-checkconf]]
 +
* <code>[[monit -t]]</code>
 +
* <code>[[php-fpm7.4 -t]]</code>
 +
* [[apache2 -t]]
  
 
== See also ==
 
== See also ==
 +
* {{test mode}}
 
* {{nginx.conf}}
 
* {{nginx.conf}}
 
* {{nginx}}
 
* {{nginx}}

Latest revision as of 23:25, 18 November 2023

Advertising: