Loading...

摘要: 场景 两台服务器在一个内网中,无法访问外网的ntp服务,于是一台做server,一台做client,两台服务器实现时间同步 安装 需要在两台服务器上都安装并启动ntp服务 sudo apt-get install ntp sudo systemctl enable ntp sudo systemct 阅读全文
posted @ 2021-05-19 17:37 choizzzi 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 编译JDK步骤大致是这样的: 下载源码 configure make 看起来很简单,但是实践的时候总会遇到很多问题。所以我总结了一下自己的踩坑经历。 下载源码 方式一:使用Mercurial下载 安装Mercurial sudo apt-get install mercurial 访问OpenJDK 阅读全文
posted @ 2021-05-02 18:18 choizzzi 阅读(331) 评论(0) 推荐(1) 编辑
摘要: 面试题:JVM 默认垃圾回收器是什么 要回答这个问题,自己写个Hello World测试一下就知道了,下面是在JDK8环境下测试 # 生成 Demo.java 文件 $ cat > Demo.java << eof public class Demo { > public static void m 阅读全文
posted @ 2021-04-09 11:40 choizzzi 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 进入mysql,然后输入: pager less -S 阅读全文
posted @ 2021-04-01 15:30 choizzzi 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 参考:PreFOSDEM talk: Upgrading from MySQL 5.7 to MySQL 8.0 编辑文件 /etc/mysql/mysql.conf.d/mysqld.cnf # 在 [mysqld] 下加入一下内容 [mysqld] character-set-server = 阅读全文
posted @ 2021-03-26 16:09 choizzzi 阅读(896) 评论(0) 推荐(0) 编辑
摘要: $ cd /lib/systemd/system $ cat mysql.service # MySQL systemd service file # ...... LimitNOFILE=65535 LimitNPROC=65535 加入上面配置,更改MySQL在Linux的最大文件描述符限制 保 阅读全文
posted @ 2021-03-11 17:22 choizzzi 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 安装 到清华源下载deb包安装: cd /usr/local/src wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/debian-stable/jenkins_2.235.5_all.deb sudo dpkg -i jenkins_2.235. 阅读全文
posted @ 2021-03-05 21:21 choizzzi 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 先来看看两段效果一样的shell脚本代码: 版本1: caibh@book:~/test$ cat << EOF > aa.txt > hello > world > EOF caibh@book:~/test$ cat aa.txt hello world 版本2: caibh@book:~/te 阅读全文
posted @ 2021-03-04 13:11 choizzzi 阅读(608) 评论(0) 推荐(0) 编辑
摘要: Vagrant 网络设置 基本用法 如何配置 Vagrant 的网络配置是通过在 Vagrantfile 中调用 config.vm.network 方法来实现的,例如: # 2 是版本号的意思 Vagrant.configure("2") do |config| # 配置网络端口转发,配置生效后, 阅读全文
posted @ 2021-03-02 23:27 choizzzi 阅读(1325) 评论(0) 推荐(0) 编辑
摘要: Vagrant入门 安装 Vagrant 依赖 virtualbox,所以需要先安装,到这里下载:Download VirtualBox 先安装 virtualbox: caibh@book:/data/virtualbox$ sudo dpkg -i virtualbox-6.1_6.1.18-1 阅读全文
posted @ 2021-03-02 17:54 choizzzi 阅读(129) 评论(0) 推荐(0) 编辑