上一页 1 2 3 4 5 6 ··· 40 下一页
摘要: #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include m 阅读全文
posted @ 2019-10-22 17:36 千彧 阅读(175) 评论(1) 推荐(0) 编辑
摘要: 范围\目的 创建型模式 结构型模式 行为型模式 类模式 工厂方法 (类)适配器 模板方法、解释器 对象模式 单例 原型 抽象工厂 建造者 代理 (对象)适配器 桥接 装饰 外观 享元 组合 策略 命令 职责链 状态 观察者 中介者 迭代器 访问者 备忘录 阅读全文
posted @ 2019-10-16 10:52 千彧 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1、安装 yum install tomcat 2、卸载 yum remove tomcat 3、地址映射 http://localhost:8080/ /usr/share/tomcat/webapps/ROOT/index.jsp (ROOT/index.jsp需要自己创建) 阅读全文
posted @ 2019-10-15 11:08 千彧 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1、pom文件中将项目改为 war 2、添加servlet 依赖 3、去除内置tomcat(经实验,不去除依赖并不会影响,项目的启动,只不过多余无法使用) 4、去除log冲突 如果你使用日志插件为log4j 而不是logbcak(springboot内置默认使用logback,以jar跑时启动不会出 阅读全文
posted @ 2019-10-14 16:25 千彧 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 注:此方法启动的tomcat只能够访问到本项目,包括tomcat的ROOT目录都访问不到 1、点击添加run config ,选择添加tomcat server 2、配置 tomcat 路径 及启动地址 3、配置maven打包 4、 配置tomcat 运行war文件 5、启动tomcat时可能tom 阅读全文
posted @ 2019-10-14 16:03 千彧 阅读(1791) 评论(0) 推荐(0) 编辑
摘要: 在 CentOS 7 中,直接使用 yum 安装 Nignx 会提示无下载源。因此,需要添加 Nginx 的下载源到 yum: 指定了下载源后,就可以使用 yum 命令来安装 Nginx 了: 安装完成的 Nginx 并不会立刻启动,需要我们手动执行命令来开启它: 还可以输入以下命令,让 Nginx 阅读全文
posted @ 2019-10-12 15:23 千彧 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 1、备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/ CentOS 5 wget -O /etc/yum 阅读全文
posted @ 2019-10-12 15:21 千彧 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 只有代码: 1 # ************************************************************ 2 # Sequel Pro SQL dump 3 # Version 4541 4 # 5 # http://www.sequelpro.com/ 6 # 阅读全文
posted @ 2019-08-14 10:35 千彧 阅读(2641) 评论(0) 推荐(0) 编辑
摘要: 1、到idea的安装目录的bin下,找idea64.exe.vmoptions 文件 2、更改参数 对应的参数解释: -Xms1024m 设置IDEA初时的内存大小,提高Java程序的启动速度。 -Xmx2048m 设置IDEA最大内存数,提高该值,可以减少内存Garage收集的频率,提高程序性能。 阅读全文
posted @ 2019-08-02 17:11 千彧 阅读(7055) 评论(0) 推荐(1) 编辑
摘要: netstat -ano | findstr 8080 //寻找8080端口的进程号 taskkill /pid 11328 -f //其中 11328为假设进程号 阅读全文
posted @ 2019-07-25 18:04 千彧 阅读(2116) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 40 下一页