我写了一个基本的Hello World我们动态项目,并安装了apache服务器。
Web.xml内容是,
import re
string = """
2016-11-10 00:00:44,766 INFO [com.server.log.Log] - <Login Success. userInfo: userID = 140803;appID = 3;channelID = 309;channelUserID = 76ab5a49ea40477f9623074d0d5e0227;userName = 1477806062675.ios.test;channelUserName = l379192229;createTime = 2016-10-30 13:41:02.0;loginTime = 1478707244762;userIP = 61.158.146.157;IMEI = FB7FE841-9E54-4421-86E0-1ED625068C57;newUser = false>
"""
rx = re.compile(r'(?P<key>\w+)[ ]*=[ ]*(?P<value>[^;]+)')
result = dict()
for m in rx.finditer(string):
result[m.group('key')] = m.group('value')
print(result)
# {'userName': '1477806062675.ios.test', 'channelUserName': 'l379192229', 'channelID': '309', 'userID': '140803', 'loginTime': '1478707244762', 'IMEI': 'FB7FE841-9E54-4421-86E0-1ED625068C57', 'appID': '3', 'userIP': '61.158.146.157', 'channelUserID': '76ab5a49ea40477f9623074d0d5e0227', 'newUser': 'false>\n', 'createTime': '2016-10-30 13:41:02.0'}
hello.html是,
<display-name>hello</display-name>
<welcome-file-list>
<welcome-file>hello.html</welcome-file>
</welcome-file-list>
启动Apache后,我正在尝试访问URL,
http://localhost:8080/hello.html
获取错误: HTTP状态404 - /hello.html
有什么建议吗?
答案 0 :(得分:2)
答案 1 :(得分:0)
答案 2 :(得分:0)
通常此错误来自使用端口8080的其他应用程序,检查同一端口上是否有其他程序。