1.tomcat原来的默认根目录是http://localhost:8080,如果想修改访问的根目录,可以这样:找到tomcat的server.xml(在conf目录下),找到:在前插入:
系统 2019-08-12 01:33:40 2569
Tomcat的默认目录是指向webapps下的root目录,输入http://localhost:8080,会打开root目录下的页面。我想让localhost指向我自己的目录。比如webapps/mysite目录。打开/conf/server.xml
系统 2019-08-12 01:33:30 2569
转载自祥龙之子原文链接:http://www.cnblogs.com/cy163/archive/2008/04/17/1158164.html我在$tomcat/webapps/下建了个myjsp目录作为我网站的默认目录,在myjsp中有一个a.jsp文件,该文件要作为我网站的默认主页。修改配置文件:首先,修改$tomcat/conf/server.xml文件。在server.xml文件中,有一段如下:……
系统 2019-08-12 01:32:31 2569
同时启动两个tomcat设置,具体如下:1.不要设置CATALINA_HOME2.分别修改安装目录下的conf子目录中的server.xml文件:a.修改http访问端口为不同的端口,将8080修改为tomcat不在使用的端口号。此处所设的端口号即是以后访问web时所用的端口号。b.修改其中一个tomcat的Shutdown端口(在server.xml中,默认为8005端口),将8005修改为没有在使用的端口号,例如8055。c.修改其中一个tomcat的
系统 2019-08-12 01:32:31 2569
查看控制台#tail-fcatalina.out脚本执行权限chmodu+x*.sh#看是否已经有tomcat在运行了ps-ef|greptomcat#如果有,用kill;kill-9pid#pid为相应的进程号例如ps-ef|greptomcat输出如下sun51441010:21pts/100:00:06/java/jdk/bin/java-Djava.util.logging.manager=org.apache.juli.ClassLoaderLo
系统 2019-08-12 01:32:16 2569
前一篇已经介绍过BASE页与index静态页面的开发了,但是目前index静态页面的输入框与提交按钮其实是没有任何作用的。如果需要与后台交互,还需要在数据库创建相应的表格,以及编写对应的业务逻辑去操作数据库。本篇我们暂时不去弄数据库,还是先对学生登录成功后的页面,编辑导航BASE页以及非BASE页的静态页面。之前聊过:【实战演练】Python+Django网站开发系列02-Django完整开发环境部署https://blog.51cto.com/14423
系统 2019-09-27 17:56:28 2568
利用map()函数,把用户输入的不规范的英文名字,变为首字母大写,其他小写的规范名字。思路:使用capitalize()函数将字符串的首字母转为大写,其余变为小写L1=['AdmIn','anny','LUCY','sandY','wILl']defnormallize(name):returnname.capitalize()L2=list(map(normallize,L1))print(L2)打印如下:['Admin','Anny','Lucy','
系统 2019-09-27 17:54:08 2568
list_pratisce=[45,69,8,19,9]n=len(list_pratisce)forjinrange(n):foriinrange(n-1):iflist_pratisce[i]>list_pratisce[i+1]:temp=list_pratisce[i]list_pratisce[i]=list_pratisce[i+1]list_pratisce[i+1]=tempprint(list_pratisce)输出结果:[8,9,19,
系统 2019-09-27 17:53:56 2568
result=[]defget_all(path):#递归获取指定目录下所有文件的绝对路径(非目录)dir_list=os.listdir(path)foriindir_list:sub_dir=os.path.join(path,i)ifos.path.isdir(sub_dir):get_all(sub_dir)else:#此时sub_dir是文件的绝对路径result.append(sub_dir)get_all(r'E:\bigdata')E:\b
系统 2019-09-27 17:49:36 2568