Tomcat8源服务器没有找到目标资源的当前表示,或者不愿意透露存在该目标资源

时间:2018-06-06 12:31:24

标签: tomcat8 guacamole

我的网址是http://localhost:8080/guacamole,它会返回

It works !

If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!

This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat8/webapps/ROOT/index.html

Tomcat8 veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME in /usr/share/tomcat8 and CATALINA_BASE in /var/lib/tomcat8, following the rules from /usr/share/doc/tomcat8-common/RUNNING.txt.gz.

You might consider installing the following packages, if you haven't already done so:

tomcat8-docs: This package installs a web application that allows to browse the Tomcat 8 documentation locally. Once installed, you can access it by clicking here.

tomcat8-examples: This package installs a web application that allows to access the Tomcat 8 Servlet and JSP examples. Once installed, you can access it by clicking here.

tomcat8-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp.

NOTE: For security reasons, using the manager webapp is restricted to users with role "manager-gui". The host-manager webapp is restricted to users with role "admin-gui". Users are defined in /etc/tomcat8/tomcat-users.xml.

和url localhost:8080显示

        NSData* jssonData = [NSJSONSerialization dataWithJSONObject:submitregistrationData options:kNilOptions error:&error];
        NSString *postLength = [NSString stringWithFormat:@"%lu",(unsigned long)[jssonData length]];
        NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
        [request setURL:[NSURL URLWithString:[NSString stringWithFormat:@"endpoint.php"]]];
        [request setHTTPMethod:@"POST"];
        [request setValue:postLength forHTTPHeaderField:@"Content-Length"];
        [request setValue:@"text/plain" forHTTPHeaderField:@"Content-Type"];
        [request setHTTPBody:jssonData];
        NSData * data = [ NSURLConnection sendSynchronousRequest:request returningResponse:nil error:&error ];
        NSMutableDictionary * userDict = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];
        NSLog(@"Registration Data::%@",userDict);
        return userDict;

    }
    @catch (NSException *exception)
    {
        NSLog(@"Exception: %@", exception.description);
        return nil;
    }
}

但我需要apache tom server site

0 个答案:

没有答案