ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    How To Install Elasticsearch, Logstash, and Kibana 4 on CentOS 7

    IT Discussion
    4
    50
    7.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JoyJ
      Joy
      last edited by

      I removed the
      server {
      include /etc/nginx/default.d/*.conf;
      }

      but when i run the command "nginx -t -c /etc/nginx/nginx.conf" it says
      nginx: [emerg] unexpected end of file, expecting "}" in /etc/nginx/nginx.conf:35

      stacksofplatesS 1 Reply Last reply Reply Quote 0
      • stacksofplatesS
        stacksofplates @Joy
        last edited by

        @Joy said:

        I removed the
        server {
        include /etc/nginx/default.d/*.conf;
        }

        but when i run the command "nginx -t -c /etc/nginx/nginx.conf" it says
        nginx: [emerg] unexpected end of file, expecting "}" in /etc/nginx/nginx.conf:35

        ok paste your nginx.conf file again

        JoyJ 1 Reply Last reply Reply Quote 0
        • JoyJ
          Joy @stacksofplates
          last edited by

          @johnhooks said:

          @Joy said:

          I removed the
          server {
          include /etc/nginx/default.d/*.conf;
          }

          but when i run the command "nginx -t -c /etc/nginx/nginx.conf" it says
          nginx: [emerg] unexpected end of file, expecting "}" in /etc/nginx/nginx.conf:35

          ok paste your nginx.conf file again

          user nginx;
          worker_processes auto;
          error_log /var/log/nginx/error.log;
          pid /run/nginx.pid;

          events {
          worker_connections 1024;
          }

          http {
          log_format main '$remote_addr - $remote_user [$time_local] "$request" '
          '$status $body_bytes_sent "$http_referer" '
          '"$http_user_agent" "$http_x_forwarded_for"';

          access_log  /var/log/nginx/access.log  main;
          
          sendfile            on;
          tcp_nopush          on;
          tcp_nodelay         on;
          keepalive_timeout   65;
          types_hash_max_size 2048;
          
          include             /etc/nginx/mime.types;
          default_type        application/octet-stream;
          
          # Load modular configuration files from the /etc/nginx/conf.d directory.
          # See http://nginx.org/en/docs/ngx_core_module.html#include
          # for more information.
          

          "}"

          1 Reply Last reply Reply Quote 0
          • stacksofplatesS
            stacksofplates
            last edited by stacksofplates

            Are there quotes around the last curly brace?

            Also, you still need the include /etc/nginx/conf.d/*.conf;

            Here's my nginx.conf file, you can use it.

            # For more information on configuration, see:
            #   * Official English Documentation: http://nginx.org/en/docs/
            #   * Official Russian Documentation: http://nginx.org/ru/docs/
            
            user nginx;
            worker_processes auto;
            error_log /var/log/nginx/error.log;
            pid /run/nginx.pid;
            
            events {
                worker_connections 1024;
            }
            
            http {
                log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                                  '$status $body_bytes_sent "$http_referer" '
                                  '"$http_user_agent" "$http_x_forwarded_for"';
            
                access_log  /var/log/nginx/access.log  main;
            
                sendfile            on;
                tcp_nopush          on;
                tcp_nodelay         on;
                keepalive_timeout   65;
                types_hash_max_size 2048;
            
                include             /etc/nginx/mime.types;
                default_type        application/octet-stream;
            
                # Load modular configuration files from the /etc/nginx/conf.d directory.
                # See http://nginx.org/en/docs/ngx_core_module.html#include
                # for more information.
                include /etc/nginx/conf.d/*.conf;
            
            }
            
            JoyJ 1 Reply Last reply Reply Quote 0
            • JoyJ
              Joy @stacksofplates
              last edited by

              @johnhooks said:

              Are there quotes around the last curly brace?

              Also, you still need the include /etc/nginx/conf.d/*.conf;

              Here's my nginx.conf file, you can use it.

              # For more information on configuration, see:
              #   * Official English Documentation: http://nginx.org/en/docs/
              #   * Official Russian Documentation: http://nginx.org/ru/docs/
              
              user nginx;
              worker_processes auto;
              error_log /var/log/nginx/error.log;
              pid /run/nginx.pid;
              
              events {
                  worker_connections 1024;
              }
              
              http {
                  log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                                    '$status $body_bytes_sent "$http_referer" '
                                    '"$http_user_agent" "$http_x_forwarded_for"';
              
                  access_log  /var/log/nginx/access.log  main;
              
                  sendfile            on;
                  tcp_nopush          on;
                  tcp_nodelay         on;
                  keepalive_timeout   65;
                  types_hash_max_size 2048;
              
                  include             /etc/nginx/mime.types;
                  default_type        application/octet-stream;
              
                  # Load modular configuration files from the /etc/nginx/conf.d directory.
                  # See http://nginx.org/en/docs/ngx_core_module.html#include
                  # for more information.
                  include /etc/nginx/conf.d/*.conf;
              
              }
              

              Thanks, nginx: configuration file /etc/nginx/nginx.conf test is successful

              stacksofplatesS 1 Reply Last reply Reply Quote 1
              • stacksofplatesS
                stacksofplates @Joy
                last edited by

                @Joy said:

                @johnhooks said:

                Are there quotes around the last curly brace?

                Also, you still need the include /etc/nginx/conf.d/*.conf;

                Here's my nginx.conf file, you can use it.

                # For more information on configuration, see:
                #   * Official English Documentation: http://nginx.org/en/docs/
                #   * Official Russian Documentation: http://nginx.org/ru/docs/
                
                user nginx;
                worker_processes auto;
                error_log /var/log/nginx/error.log;
                pid /run/nginx.pid;
                
                events {
                    worker_connections 1024;
                }
                
                http {
                    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                                      '$status $body_bytes_sent "$http_referer" '
                                      '"$http_user_agent" "$http_x_forwarded_for"';
                
                    access_log  /var/log/nginx/access.log  main;
                
                    sendfile            on;
                    tcp_nopush          on;
                    tcp_nodelay         on;
                    keepalive_timeout   65;
                    types_hash_max_size 2048;
                
                    include             /etc/nginx/mime.types;
                    default_type        application/octet-stream;
                
                    # Load modular configuration files from the /etc/nginx/conf.d directory.
                    # See http://nginx.org/en/docs/ngx_core_module.html#include
                    # for more information.
                    include /etc/nginx/conf.d/*.conf;
                
                }
                

                Thanks, nginx: configuration file /etc/nginx/nginx.conf test is successful

                I probably could have just posted mine earlier and saved all of that 😛

                JoyJ 1 Reply Last reply Reply Quote 0
                • JoyJ
                  Joy @stacksofplates
                  last edited by

                  @johnhooks said:

                  @Joy said:

                  @johnhooks said:

                  Are there quotes around the last curly brace?

                  Also, you still need the include /etc/nginx/conf.d/*.conf;

                  Here's my nginx.conf file, you can use it.

                  # For more information on configuration, see:
                  #   * Official English Documentation: http://nginx.org/en/docs/
                  #   * Official Russian Documentation: http://nginx.org/ru/docs/
                  
                  user nginx;
                  worker_processes auto;
                  error_log /var/log/nginx/error.log;
                  pid /run/nginx.pid;
                  
                  events {
                      worker_connections 1024;
                  }
                  
                  http {
                      log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                                        '$status $body_bytes_sent "$http_referer" '
                                        '"$http_user_agent" "$http_x_forwarded_for"';
                  
                      access_log  /var/log/nginx/access.log  main;
                  
                      sendfile            on;
                      tcp_nopush          on;
                      tcp_nodelay         on;
                      keepalive_timeout   65;
                      types_hash_max_size 2048;
                  
                      include             /etc/nginx/mime.types;
                      default_type        application/octet-stream;
                  
                      # Load modular configuration files from the /etc/nginx/conf.d directory.
                      # See http://nginx.org/en/docs/ngx_core_module.html#include
                      # for more information.
                      include /etc/nginx/conf.d/*.conf;
                  
                  }
                  

                  Thanks, nginx: configuration file /etc/nginx/nginx.conf test is successful

                  I probably could have just posted mine earlier and saved all of that 😛

                  However when i do the "sudo systemctl reload nginx" or sudo systemctl start nginx
                  the Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
                  😁

                  stacksofplatesS 1 Reply Last reply Reply Quote 0
                  • stacksofplatesS
                    stacksofplates @Joy
                    last edited by

                    @Joy said:

                    @johnhooks said:

                    @Joy said:

                    @johnhooks said:

                    Are there quotes around the last curly brace?

                    Also, you still need the include /etc/nginx/conf.d/*.conf;

                    Here's my nginx.conf file, you can use it.

                    # For more information on configuration, see:
                    #   * Official English Documentation: http://nginx.org/en/docs/
                    #   * Official Russian Documentation: http://nginx.org/ru/docs/
                    
                    user nginx;
                    worker_processes auto;
                    error_log /var/log/nginx/error.log;
                    pid /run/nginx.pid;
                    
                    events {
                        worker_connections 1024;
                    }
                    
                    http {
                        log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                                          '$status $body_bytes_sent "$http_referer" '
                                          '"$http_user_agent" "$http_x_forwarded_for"';
                    
                        access_log  /var/log/nginx/access.log  main;
                    
                        sendfile            on;
                        tcp_nopush          on;
                        tcp_nodelay         on;
                        keepalive_timeout   65;
                        types_hash_max_size 2048;
                    
                        include             /etc/nginx/mime.types;
                        default_type        application/octet-stream;
                    
                        # Load modular configuration files from the /etc/nginx/conf.d directory.
                        # See http://nginx.org/en/docs/ngx_core_module.html#include
                        # for more information.
                        include /etc/nginx/conf.d/*.conf;
                    
                    }
                    

                    Thanks, nginx: configuration file /etc/nginx/nginx.conf test is successful

                    I probably could have just posted mine earlier and saved all of that 😛

                    However when i do the "sudo systemctl reload nginx" or sudo systemctl start nginx
                    the Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
                    😁

                    what's sudo systemctl status nginx show again?

                    JoyJ 1 Reply Last reply Reply Quote 0
                    • JoyJ
                      Joy @stacksofplates
                      last edited by

                      @johnhooks said:

                      @Joy said:

                      @johnhooks said:

                      @Joy said:

                      @johnhooks said:

                      Are there quotes around the last curly brace?

                      Also, you still need the include /etc/nginx/conf.d/*.conf;

                      Here's my nginx.conf file, you can use it.

                      # For more information on configuration, see:
                      #   * Official English Documentation: http://nginx.org/en/docs/
                      #   * Official Russian Documentation: http://nginx.org/ru/docs/
                      
                      user nginx;
                      worker_processes auto;
                      error_log /var/log/nginx/error.log;
                      pid /run/nginx.pid;
                      
                      events {
                          worker_connections 1024;
                      }
                      
                      http {
                          log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                                            '$status $body_bytes_sent "$http_referer" '
                                            '"$http_user_agent" "$http_x_forwarded_for"';
                      
                          access_log  /var/log/nginx/access.log  main;
                      
                          sendfile            on;
                          tcp_nopush          on;
                          tcp_nodelay         on;
                          keepalive_timeout   65;
                          types_hash_max_size 2048;
                      
                          include             /etc/nginx/mime.types;
                          default_type        application/octet-stream;
                      
                          # Load modular configuration files from the /etc/nginx/conf.d directory.
                          # See http://nginx.org/en/docs/ngx_core_module.html#include
                          # for more information.
                          include /etc/nginx/conf.d/*.conf;
                      
                      }
                      

                      Thanks, nginx: configuration file /etc/nginx/nginx.conf test is successful

                      I probably could have just posted mine earlier and saved all of that 😛

                      However when i do the "sudo systemctl reload nginx" or sudo systemctl start nginx
                      the Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
                      😁

                      what's sudo systemctl status nginx show again?

                      Oct 22 08:47:33 localhost.localdomain nginx[15501]: nginx: configuration file /etc/nginx/nginx.conf test is successful
                      Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                      Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                      Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                      Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                      Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                      Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] still could not bind()
                      Oct 22 08:47:35 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
                      Oct 22 08:47:35 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
                      Oct 22 08:47:35 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.

                      stacksofplatesS 1 Reply Last reply Reply Quote 0
                      • stacksofplatesS
                        stacksofplates @Joy
                        last edited by

                        @Joy said:

                        @johnhooks said:

                        @Joy said:

                        @johnhooks said:

                        @Joy said:

                        @johnhooks said:

                        Are there quotes around the last curly brace?

                        Also, you still need the include /etc/nginx/conf.d/*.conf;

                        Here's my nginx.conf file, you can use it.

                        # For more information on configuration, see:
                        #   * Official English Documentation: http://nginx.org/en/docs/
                        #   * Official Russian Documentation: http://nginx.org/ru/docs/
                        
                        user nginx;
                        worker_processes auto;
                        error_log /var/log/nginx/error.log;
                        pid /run/nginx.pid;
                        
                        events {
                            worker_connections 1024;
                        }
                        
                        http {
                            log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                                              '$status $body_bytes_sent "$http_referer" '
                                              '"$http_user_agent" "$http_x_forwarded_for"';
                        
                            access_log  /var/log/nginx/access.log  main;
                        
                            sendfile            on;
                            tcp_nopush          on;
                            tcp_nodelay         on;
                            keepalive_timeout   65;
                            types_hash_max_size 2048;
                        
                            include             /etc/nginx/mime.types;
                            default_type        application/octet-stream;
                        
                            # Load modular configuration files from the /etc/nginx/conf.d directory.
                            # See http://nginx.org/en/docs/ngx_core_module.html#include
                            # for more information.
                            include /etc/nginx/conf.d/*.conf;
                        
                        }
                        

                        Thanks, nginx: configuration file /etc/nginx/nginx.conf test is successful

                        I probably could have just posted mine earlier and saved all of that 😛

                        However when i do the "sudo systemctl reload nginx" or sudo systemctl start nginx
                        the Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
                        😁

                        what's sudo systemctl status nginx show again?

                        Oct 22 08:47:33 localhost.localdomain nginx[15501]: nginx: configuration file /etc/nginx/nginx.conf test is successful
                        Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                        Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                        Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                        Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                        Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                        Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] still could not bind()
                        Oct 22 08:47:35 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
                        Oct 22 08:47:35 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
                        Oct 22 08:47:35 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.

                        Do you have anything else running on port 80?

                        What do you get if you type netstat -tulpn?

                        JoyJ 1 Reply Last reply Reply Quote 1
                        • scottalanmillerS
                          scottalanmiller
                          last edited by

                          That is most definitely a port 80 conflict.

                          1 Reply Last reply Reply Quote 1
                          • JoyJ
                            Joy @stacksofplates
                            last edited by

                            @johnhooks said:

                            @Joy said:

                            @johnhooks said:

                            @Joy said:

                            @johnhooks said:

                            @Joy said:

                            @johnhooks said:

                            Are there quotes around the last curly brace?

                            Also, you still need the include /etc/nginx/conf.d/*.conf;

                            Here's my nginx.conf file, you can use it.

                            # For more information on configuration, see:
                            #   * Official English Documentation: http://nginx.org/en/docs/
                            #   * Official Russian Documentation: http://nginx.org/ru/docs/
                            
                            user nginx;
                            worker_processes auto;
                            error_log /var/log/nginx/error.log;
                            pid /run/nginx.pid;
                            
                            events {
                                worker_connections 1024;
                            }
                            
                            http {
                                log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                                                  '$status $body_bytes_sent "$http_referer" '
                                                  '"$http_user_agent" "$http_x_forwarded_for"';
                            
                                access_log  /var/log/nginx/access.log  main;
                            
                                sendfile            on;
                                tcp_nopush          on;
                                tcp_nodelay         on;
                                keepalive_timeout   65;
                                types_hash_max_size 2048;
                            
                                include             /etc/nginx/mime.types;
                                default_type        application/octet-stream;
                            
                                # Load modular configuration files from the /etc/nginx/conf.d directory.
                                # See http://nginx.org/en/docs/ngx_core_module.html#include
                                # for more information.
                                include /etc/nginx/conf.d/*.conf;
                            
                            }
                            

                            Thanks, nginx: configuration file /etc/nginx/nginx.conf test is successful

                            I probably could have just posted mine earlier and saved all of that 😛

                            However when i do the "sudo systemctl reload nginx" or sudo systemctl start nginx
                            the Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
                            😁

                            what's sudo systemctl status nginx show again?

                            Oct 22 08:47:33 localhost.localdomain nginx[15501]: nginx: configuration file /etc/nginx/nginx.conf test is successful
                            Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                            Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                            Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                            Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                            Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                            Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] still could not bind()
                            Oct 22 08:47:35 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
                            Oct 22 08:47:35 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
                            Oct 22 08:47:35 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.

                            Do you have anything else running on port 80?

                            What do you get if you type netstat -tulpn?

                            yes, I think the Mediawiki is using the port 80

                            for netstat -tulpn`
                            tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1827/master
                            tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 11086/node
                            tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1819/mysqld
                            tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 2174/perl
                            tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 914/sshd
                            tcp6 0 0 ::1:25 :::* LISTEN 1827/master
                            tcp6 0 0 :::80 :::* LISTEN 9475/httpd
                            tcp6 0 0 :::9200 :::* LISTEN 10798/java
                            tcp6 0 0 :::9300 :::* LISTEN 10798/java
                            tcp6 0 0 :::22 :::* LISTEN 914/sshd
                            udp 0 0 0.0.0.0:50573 0.0.0.0:* 588/avahi-daemon: r
                            udp 0 0 0.0.0.0:5353 0.0.0.0:* 588/avahi-daemon: r
                            udp 0 0 0.0.0.0:10000 0.0.0.0:* 2174/perl
                            udp6 0 0 :::54328 :::* 10798/java

                            stacksofplatesS 1 Reply Last reply Reply Quote 0
                            • stacksofplatesS
                              stacksofplates @Joy
                              last edited by stacksofplates

                              @Joy said:

                              @johnhooks said:

                              @Joy said:

                              @johnhooks said:

                              @Joy said:

                              @johnhooks said:

                              @Joy said:

                              @johnhooks said:

                              Are there quotes around the last curly brace?

                              Also, you still need the include /etc/nginx/conf.d/*.conf;

                              Here's my nginx.conf file, you can use it.

                              # For more information on configuration, see:
                              #   * Official English Documentation: http://nginx.org/en/docs/
                              #   * Official Russian Documentation: http://nginx.org/ru/docs/
                              
                              user nginx;
                              worker_processes auto;
                              error_log /var/log/nginx/error.log;
                              pid /run/nginx.pid;
                              
                              events {
                                  worker_connections 1024;
                              }
                              
                              http {
                                  log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                                                    '$status $body_bytes_sent "$http_referer" '
                                                    '"$http_user_agent" "$http_x_forwarded_for"';
                              
                                  access_log  /var/log/nginx/access.log  main;
                              
                                  sendfile            on;
                                  tcp_nopush          on;
                                  tcp_nodelay         on;
                                  keepalive_timeout   65;
                                  types_hash_max_size 2048;
                              
                                  include             /etc/nginx/mime.types;
                                  default_type        application/octet-stream;
                              
                                  # Load modular configuration files from the /etc/nginx/conf.d directory.
                                  # See http://nginx.org/en/docs/ngx_core_module.html#include
                                  # for more information.
                                  include /etc/nginx/conf.d/*.conf;
                              
                              }
                              

                              Thanks, nginx: configuration file /etc/nginx/nginx.conf test is successful

                              I probably could have just posted mine earlier and saved all of that 😛

                              However when i do the "sudo systemctl reload nginx" or sudo systemctl start nginx
                              the Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
                              😁

                              what's sudo systemctl status nginx show again?

                              Oct 22 08:47:33 localhost.localdomain nginx[15501]: nginx: configuration file /etc/nginx/nginx.conf test is successful
                              Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                              Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                              Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                              Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                              Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                              Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] still could not bind()
                              Oct 22 08:47:35 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
                              Oct 22 08:47:35 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
                              Oct 22 08:47:35 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.

                              Do you have anything else running on port 80?

                              What do you get if you type netstat -tulpn?

                              yes, I think the Mediawiki is using the port 80

                              for netstat -tulpn`
                              tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1827/master
                              tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 11086/node
                              tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1819/mysqld
                              tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 2174/perl
                              tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 914/sshd
                              tcp6 0 0 ::1:25 :::* LISTEN 1827/master
                              tcp6 0 0 :::80 :::* LISTEN 9475/httpd
                              tcp6 0 0 :::9200 :::* LISTEN 10798/java
                              tcp6 0 0 :::9300 :::* LISTEN 10798/java
                              tcp6 0 0 :::22 :::* LISTEN 914/sshd
                              udp 0 0 0.0.0.0:50573 0.0.0.0:* 588/avahi-daemon: r
                              udp 0 0 0.0.0.0:5353 0.0.0.0:* 588/avahi-daemon: r
                              udp 0 0 0.0.0.0:10000 0.0.0.0:* 2174/perl
                              udp6 0 0 :::54328 :::* 10798/java

                              Ya looks like apache is on 80. You will either have to shut if off or change a port and have nginx proxy incoming mediawiki connections.

                              JoyJ 1 Reply Last reply Reply Quote 0
                              • JoyJ
                                Joy @stacksofplates
                                last edited by

                                @johnhooks said:

                                @Joy said:

                                @johnhooks said:

                                @Joy said:

                                @johnhooks said:

                                @Joy said:

                                @johnhooks said:

                                @Joy said:

                                @johnhooks said:

                                Are there quotes around the last curly brace?

                                Also, you still need the include /etc/nginx/conf.d/*.conf;

                                Here's my nginx.conf file, you can use it.

                                # For more information on configuration, see:
                                #   * Official English Documentation: http://nginx.org/en/docs/
                                #   * Official Russian Documentation: http://nginx.org/ru/docs/
                                
                                user nginx;
                                worker_processes auto;
                                error_log /var/log/nginx/error.log;
                                pid /run/nginx.pid;
                                
                                events {
                                    worker_connections 1024;
                                }
                                
                                http {
                                    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                                                      '$status $body_bytes_sent "$http_referer" '
                                                      '"$http_user_agent" "$http_x_forwarded_for"';
                                
                                    access_log  /var/log/nginx/access.log  main;
                                
                                    sendfile            on;
                                    tcp_nopush          on;
                                    tcp_nodelay         on;
                                    keepalive_timeout   65;
                                    types_hash_max_size 2048;
                                
                                    include             /etc/nginx/mime.types;
                                    default_type        application/octet-stream;
                                
                                    # Load modular configuration files from the /etc/nginx/conf.d directory.
                                    # See http://nginx.org/en/docs/ngx_core_module.html#include
                                    # for more information.
                                    include /etc/nginx/conf.d/*.conf;
                                
                                }
                                

                                Thanks, nginx: configuration file /etc/nginx/nginx.conf test is successful

                                I probably could have just posted mine earlier and saved all of that 😛

                                However when i do the "sudo systemctl reload nginx" or sudo systemctl start nginx
                                the Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
                                😁

                                what's sudo systemctl status nginx show again?

                                Oct 22 08:47:33 localhost.localdomain nginx[15501]: nginx: configuration file /etc/nginx/nginx.conf test is successful
                                Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] still could not bind()
                                Oct 22 08:47:35 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
                                Oct 22 08:47:35 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
                                Oct 22 08:47:35 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.

                                Do you have anything else running on port 80?

                                What do you get if you type netstat -tulpn?

                                yes, I think the Mediawiki is using the port 80

                                for netstat -tulpn`
                                tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1827/master
                                tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 11086/node
                                tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1819/mysqld
                                tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 2174/perl
                                tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 914/sshd
                                tcp6 0 0 ::1:25 :::* LISTEN 1827/master
                                tcp6 0 0 :::80 :::* LISTEN 9475/httpd
                                tcp6 0 0 :::9200 :::* LISTEN 10798/java
                                tcp6 0 0 :::9300 :::* LISTEN 10798/java
                                tcp6 0 0 :::22 :::* LISTEN 914/sshd
                                udp 0 0 0.0.0.0:50573 0.0.0.0:* 588/avahi-daemon: r
                                udp 0 0 0.0.0.0:5353 0.0.0.0:* 588/avahi-daemon: r
                                udp 0 0 0.0.0.0:10000 0.0.0.0:* 2174/perl
                                udp6 0 0 :::54328 :::* 10798/java

                                Ya looks like apache is on 80. You will either have to shut if off or change a port and have nginx proxy incoming mediawiki connections.

                                Sure thank you so much, I'll continue them later.
                                Time to go home for me yay!

                                stacksofplatesS 1 Reply Last reply Reply Quote 1
                                • stacksofplatesS
                                  stacksofplates @Joy
                                  last edited by

                                  @Joy said:

                                  @johnhooks said:

                                  @Joy said:

                                  @johnhooks said:

                                  @Joy said:

                                  @johnhooks said:

                                  @Joy said:

                                  @johnhooks said:

                                  @Joy said:

                                  @johnhooks said:

                                  Are there quotes around the last curly brace?

                                  Also, you still need the include /etc/nginx/conf.d/*.conf;

                                  Here's my nginx.conf file, you can use it.

                                  # For more information on configuration, see:
                                  #   * Official English Documentation: http://nginx.org/en/docs/
                                  #   * Official Russian Documentation: http://nginx.org/ru/docs/
                                  
                                  user nginx;
                                  worker_processes auto;
                                  error_log /var/log/nginx/error.log;
                                  pid /run/nginx.pid;
                                  
                                  events {
                                      worker_connections 1024;
                                  }
                                  
                                  http {
                                      log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                                                        '$status $body_bytes_sent "$http_referer" '
                                                        '"$http_user_agent" "$http_x_forwarded_for"';
                                  
                                      access_log  /var/log/nginx/access.log  main;
                                  
                                      sendfile            on;
                                      tcp_nopush          on;
                                      tcp_nodelay         on;
                                      keepalive_timeout   65;
                                      types_hash_max_size 2048;
                                  
                                      include             /etc/nginx/mime.types;
                                      default_type        application/octet-stream;
                                  
                                      # Load modular configuration files from the /etc/nginx/conf.d directory.
                                      # See http://nginx.org/en/docs/ngx_core_module.html#include
                                      # for more information.
                                      include /etc/nginx/conf.d/*.conf;
                                  
                                  }
                                  

                                  Thanks, nginx: configuration file /etc/nginx/nginx.conf test is successful

                                  I probably could have just posted mine earlier and saved all of that 😛

                                  However when i do the "sudo systemctl reload nginx" or sudo systemctl start nginx
                                  the Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
                                  😁

                                  what's sudo systemctl status nginx show again?

                                  Oct 22 08:47:33 localhost.localdomain nginx[15501]: nginx: configuration file /etc/nginx/nginx.conf test is successful
                                  Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                  Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                  Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                  Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                  Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                  Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] still could not bind()
                                  Oct 22 08:47:35 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
                                  Oct 22 08:47:35 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
                                  Oct 22 08:47:35 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.

                                  Do you have anything else running on port 80?

                                  What do you get if you type netstat -tulpn?

                                  yes, I think the Mediawiki is using the port 80

                                  for netstat -tulpn`
                                  tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1827/master
                                  tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 11086/node
                                  tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1819/mysqld
                                  tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 2174/perl
                                  tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 914/sshd
                                  tcp6 0 0 ::1:25 :::* LISTEN 1827/master
                                  tcp6 0 0 :::80 :::* LISTEN 9475/httpd
                                  tcp6 0 0 :::9200 :::* LISTEN 10798/java
                                  tcp6 0 0 :::9300 :::* LISTEN 10798/java
                                  tcp6 0 0 :::22 :::* LISTEN 914/sshd
                                  udp 0 0 0.0.0.0:50573 0.0.0.0:* 588/avahi-daemon: r
                                  udp 0 0 0.0.0.0:5353 0.0.0.0:* 588/avahi-daemon: r
                                  udp 0 0 0.0.0.0:10000 0.0.0.0:* 2174/perl
                                  udp6 0 0 :::54328 :::* 10798/java

                                  Ya looks like apache is on 80. You will either have to shut if off or change a port and have nginx proxy incoming mediawiki connections.

                                  Sure thank you so much, I'll continue them later.
                                  Time to go home for me yay!

                                  I have 7.5 more hours ha.

                                  JoyJ 1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller
                                    last edited by

                                    I pretty much just logged in here. It's only 7:30 am!

                                    stacksofplatesS 1 Reply Last reply Reply Quote 2
                                    • JoyJ
                                      Joy @stacksofplates
                                      last edited by Joy

                                      @johnhooks said:

                                      @Joy said:

                                      @johnhooks said:

                                      @Joy said:

                                      @johnhooks said:

                                      @Joy said:

                                      @johnhooks said:

                                      @Joy said:

                                      @johnhooks said:

                                      @Joy said:

                                      @johnhooks said:

                                      Are there quotes around the last curly brace?

                                      Also, you still need the include /etc/nginx/conf.d/*.conf;

                                      Here's my nginx.conf file, you can use it.

                                      # For more information on configuration, see:
                                      #   * Official English Documentation: http://nginx.org/en/docs/
                                      #   * Official Russian Documentation: http://nginx.org/ru/docs/
                                      
                                      user nginx;
                                      worker_processes auto;
                                      error_log /var/log/nginx/error.log;
                                      pid /run/nginx.pid;
                                      
                                      events {
                                          worker_connections 1024;
                                      }
                                      
                                      http {
                                          log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                                                            '$status $body_bytes_sent "$http_referer" '
                                                            '"$http_user_agent" "$http_x_forwarded_for"';
                                      
                                          access_log  /var/log/nginx/access.log  main;
                                      
                                          sendfile            on;
                                          tcp_nopush          on;
                                          tcp_nodelay         on;
                                          keepalive_timeout   65;
                                          types_hash_max_size 2048;
                                      
                                          include             /etc/nginx/mime.types;
                                          default_type        application/octet-stream;
                                      
                                          # Load modular configuration files from the /etc/nginx/conf.d directory.
                                          # See http://nginx.org/en/docs/ngx_core_module.html#include
                                          # for more information.
                                          include /etc/nginx/conf.d/*.conf;
                                      
                                      }
                                      

                                      Thanks, nginx: configuration file /etc/nginx/nginx.conf test is successful

                                      I probably could have just posted mine earlier and saved all of that 😛

                                      However when i do the "sudo systemctl reload nginx" or sudo systemctl start nginx
                                      the Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
                                      😁

                                      what's sudo systemctl status nginx show again?

                                      Oct 22 08:47:33 localhost.localdomain nginx[15501]: nginx: configuration file /etc/nginx/nginx.conf test is successful
                                      Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                      Oct 22 08:47:33 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                      Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                      Oct 22 08:47:34 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                      Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
                                      Oct 22 08:47:35 localhost.localdomain nginx[15503]: nginx: [emerg] still could not bind()
                                      Oct 22 08:47:35 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
                                      Oct 22 08:47:35 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
                                      Oct 22 08:47:35 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.

                                      Do you have anything else running on port 80?

                                      What do you get if you type netstat -tulpn?

                                      yes, I think the Mediawiki is using the port 80

                                      for netstat -tulpn`
                                      tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1827/master
                                      tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 11086/node
                                      tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1819/mysqld
                                      tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 2174/perl
                                      tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 914/sshd
                                      tcp6 0 0 ::1:25 :::* LISTEN 1827/master
                                      tcp6 0 0 :::80 :::* LISTEN 9475/httpd
                                      tcp6 0 0 :::9200 :::* LISTEN 10798/java
                                      tcp6 0 0 :::9300 :::* LISTEN 10798/java
                                      tcp6 0 0 :::22 :::* LISTEN 914/sshd
                                      udp 0 0 0.0.0.0:50573 0.0.0.0:* 588/avahi-daemon: r
                                      udp 0 0 0.0.0.0:5353 0.0.0.0:* 588/avahi-daemon: r
                                      udp 0 0 0.0.0.0:10000 0.0.0.0:* 2174/perl
                                      udp6 0 0 :::54328 :::* 10798/java

                                      Ya looks like apache is on 80. You will either have to shut if off or change a port and have nginx proxy incoming mediawiki connections.

                                      Sure thank you so much, I'll continue them later.
                                      Time to go home for me yay!

                                      I have 7.5 more hours ha.

                                      I was back to Mid Shift

                                      scottalanmillerS 1 Reply Last reply Reply Quote 1
                                      • stacksofplatesS
                                        stacksofplates @scottalanmiller
                                        last edited by

                                        @scottalanmiller said:

                                        I pretty much just logged in here. It's only 7:30 am!

                                        9:30 here. I started at 7 though.

                                        JoyJ 1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller @Joy
                                          last edited by

                                          @Joy said:

                                          I was back to Mid shift now.

                                          Not to be confused with midrift, which is what it sounds like if you say it quickly.

                                          1 Reply Last reply Reply Quote 1
                                          • JoyJ
                                            Joy @stacksofplates
                                            last edited by

                                            @johnhooks said:

                                            @scottalanmiller said:

                                            I pretty much just logged in here. It's only 7:30 am!

                                            9:30 here. I started at 7 though.

                                            I will be on Night shift maybe on December 🙂

                                            stacksofplatesS 1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post