0%

brew 安装mongo

  • brew 安装mongo 遇见的一些坑和报错

    1. WiredTiger Permission denied

    2. Found an invalid featureCompatibilityVersion document

    3. Data directory /data/db not found., terminating

阅读全文 »

如果你只是想登陆别的机器的SSH只需要安装openssh-client(ubuntu有默认安装,如果没有则sudoapt-get install openssh-client),如果要使本机开放SSH服务就需要安装openssh-server。

阅读全文 »

踩坑记录

第一种方式:将messageService 注入

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@ServerEndpoint(value = "/websocket")
@Component
public class WebSocketServer {

//这里使用静态,让 service 属于类
public static MessageServiceImpl messageService;

/**
* 给类的service 注入
* spring管理的都是单例(singleton)和 websocket (多对象)相冲突
*
* @param messageService
*/
@Autowired
public void setMessageService(MessageServiceImpl messageService) {
WebSocketServer.messageService = messageService;
}
}
阅读全文 »

beyondCompare 无限试用

一次设置,一直有效,以后不需要修改,每次打开都是30天

找到安装的目录

我的安装目录是在这个下面

1
cd /Applications/Beyond\ Compare.app/Contents/MacOS/
阅读全文 »