این دستورات رو بزنید خروجی ها رو ببینید چه خطایی نمایش میدن:
کد:systemctl restart httpd systemctl status httpd systemctl restart nginx systemctl status nginx nginx -t
این دستورات رو بزنید خروجی ها رو ببینید چه خطایی نمایش میدن:
کد:systemctl restart httpd systemctl status httpd systemctl restart nginx systemctl status nginx nginx -t
درود به شما
به ترتیب دستوراتی که دادید:
[root@server ~]# systemctl restart httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@server ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2020-10-14 13:10:06 +0330; 9s ago
Process: 27864 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 27864 (code=exited, status=1/FAILURE)
Status: "Reading configuration..."
Oct 14 13:10:06 server.makoranhost.net systemd[1]: Starting The Apache HTTP S...
Oct 14 13:10:06 server.makoranhost.net httpd[27864]: AH00526: Syntax error on...
Oct 14 13:10:06 server.makoranhost.net httpd[27864]: SSLCertificateFile: file...
Oct 14 13:10:06 server.makoranhost.net systemd[1]: httpd.service: main proces...
Oct 14 13:10:06 server.makoranhost.net systemd[1]: Failed to start The Apache...
Oct 14 13:10:06 server.makoranhost.net systemd[1]: Unit httpd.service entered...
Oct 14 13:10:06 server.makoranhost.net systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@server ~]# systemctl restart nginx
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
[root@server ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/etc/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2020-10-14 13:11:12 +0330; 329ms ago
Process: 28122 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
Oct 14 13:11:12 server.makoranhost.net systemd[1]: Starting The nginx HTTP an...
Oct 14 13:11:12 server.makoranhost.net nginx[28122]: nginx: [emerg] unknown d...
Oct 14 13:11:12 server.makoranhost.net nginx[28122]: nginx: configuration fil...
Oct 14 13:11:12 server.makoranhost.net systemd[1]: nginx.service: control pro...
Oct 14 13:11:12 server.makoranhost.net systemd[1]: Failed to start The nginx ...
Oct 14 13:11:12 server.makoranhost.net systemd[1]: Unit nginx.service entered...
Oct 14 13:11:12 server.makoranhost.net systemd[1]: nginx.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@server ~]# nginx -t
nginx: [emerg] unknown directive "ServerAlias" in /usr/local/directadmin/data/users/rcpahreh/nginx.conf:14
nginx: configuration file /etc/nginx/nginx.conf test failed
در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)