摘要: 参考连接:https://blog.csdn.net/qq_17776287/article/details/53536761 linux下有很多服务,如何查看服务是否启动,以mysql为例子 检察mysql是否安装 这里只贴链接 因为我也是一步一步按照教程走的 当然不会一步成功 中间遇到许多坑 但 阅读全文
posted @ 2018-04-25 18:03 发疯的man 阅读(2143) 评论(0) 推荐(0)
摘要: 重启网卡 编辑hosts:vim /etc/hosts 重启网卡:service network restart 查看linux的版本 cat /etc/redhat-release Linux目录结构 权限命令 权限是Linux中的重要概念 每个文件\目录等都具有权限 通过ls -l命令可以查看某 阅读全文
posted @ 2018-04-25 16:14 发疯的man 阅读(420) 评论(0) 推荐(0)
摘要: 参考原贴地址:https://blog.csdn.net/clementad/article/details/47339519 在同一个类中,一个方法调用另外一个有注解(比如@Async,@Transational)的方法,注解是不会生效的。 比如,下面代码例子中,有两方法,一个有@Transati 阅读全文
posted @ 2018-04-24 20:56 发疯的man 阅读(407) 评论(0) 推荐(0)
摘要: springboot给我们封装好了邮件功能,非常简单,只需要稍微配置下就ok。 引入jar <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactI 阅读全文
posted @ 2018-04-21 21:53 发疯的man 阅读(9228) 评论(6) 推荐(1)
摘要: 参考原博:https://www.cnblogs.com/eaglezb/p/6073739.html 查看已经开放的端口: 开启端口 命令含义: –zone #作用域 –add-port=80/tcp #添加端口,格式为:端口/通讯协议 –permanent #永久生效,没有此参数重启后失效 重启 阅读全文
posted @ 2018-04-21 10:02 发疯的man 阅读(9651) 评论(0) 推荐(0)
摘要: 现在阿里云改版了,估计前些日子勒索病毒的原因,你在阿里云上面买的服务器。就算centos的防火墙端口开放了,你也无法访问,因为还要登录阿里云开放端口。 下面是步骤: 阅读全文
posted @ 2018-04-21 09:43 发疯的man 阅读(7073) 评论(0) 推荐(0)
摘要: 以前只知道Nginx的location块中的root用法,用起来总是感觉满足不了自己的一些想法。然后终于发现了alias这个东西。 先看toot的用法 这样配置的结果就是当客户端请求 /request_path/image/cat.png 的时候, Nginx把请求映射为/local_path/im 阅读全文
posted @ 2018-04-20 23:59 发疯的man 阅读(1733) 评论(1) 推荐(1)
摘要: 最近在使用spring-boot整合多模块,但是在父pom中打包maven install时总会报错:Failed to execute goal org.springframework.boot:spring-boot-maven-plugin,导致错误的原因是父pom.xml中引入了如下配置: 阅读全文
posted @ 2018-04-18 22:54 发疯的man 阅读(39262) 评论(2) 推荐(2)
摘要: 亲测有效 附上地址:https://www.cnblogs.com/caohuimingfa/p/6659902.html 阅读全文
posted @ 2018-04-16 19:55 发疯的man 阅读(2744) 评论(0) 推荐(0)
摘要: springSecurity是spring官方给我们提供的一个非常强大的一个安全框架。也是现在最受欢迎的安全框架,比shiro更强大 springSecurity主要工作原理是内置了许多过滤器,组成过滤器链,每个过滤器都有自己的明确分工,然后还有异常处理类,还有最后的一个认证授权类。看图 绿色的是代 阅读全文
posted @ 2018-04-15 23:45 发疯的man 阅读(1016) 评论(0) 推荐(0)