TorrentFreak
Java ORM
@ManyToOne
1 | fetch = FetchType.LAZY |
@OneToOne
1 | fetch = FetchType.LAZY |
@NotFound
修改NotFound默认为NotFoundAction.IGNORE
1 | AnnotationBinder.java |
Linux Troubleshoot
here were XXX failed login attempts since the last successful login.
Too Many Open Files
vi /etc/sysctl.conf
1 | net.ipv4.tcp_keepalive_time = 1800 |
sysctl -p
时间不准确
通过ntp同步时间
- 需要安装
yum install -y ntp
- 启动
systemctl enable ntpd
- 更新时间
ntpdate -u ntp1.aliyun.com
直接修改
1 | timedatectl set-time "2022-06-10 18:34:00" |
Apache ActiveMQ
概念
Queues
Messages
Consumers
Messages Enqueued | Messages Dequeued
Purge
安装
1 | cd ~/download |
启动
1 | cd activemq5.15/bin |
停止
1 | ./activemq stop |
配置
编辑 conf\activemq.xml
1 | transportConnectors |
读写
1 | ./activemq producer --message "Mymessage" --messageCount 1 |
1 | ./activemq consumer --transacted true |
常用命令
1 | activemq status |