ArhLinux配置Tomcat + Nginx

1. 安装Tomcat8

  pacman -S tomcat8

2. 配置tomcat-users.xml

  nano /etc/tomcat8/tomcat-users.xml
    
    
      
      
      
      
      
      
      
      
    

3. 测试Tomcat8

在浏览器中输入http://localhost:8080

4. 安装Nginx

    pacman -S nginx

5. 配置nginx.conf

    upstream local_tomcat {  
      server localhost:8080;  
    } 
    server{  
      location / {  
         proxy_pass http://local_tomcat;  
      }
    }
参考文章

你可能感兴趣的:(ArhLinux配置Tomcat + Nginx)