11 2022 档案

摘要:删除list中包含某个字符的对象 // 创建一个动态数组 ArrayList<String> sites = new ArrayList<>(); sites.add("Taobao"); // 删除名称中带有 Tao 的元素 sites.removeIf(e -> e.contains("Tao" 阅读全文
posted @ 2022-11-15 15:19 panie2015 阅读(376) 评论(0) 推荐(0) 编辑
摘要:apt-get install samba vi /etc/samba/smb.conf [panie] workgroup=panie netbios name=panie path=/home/panie browseable=yes writeable=yes valid user=panie 阅读全文
posted @ 2022-11-04 11:22 panie2015 阅读(73) 评论(0) 推荐(0) 编辑
摘要:1. ubuntu 常用命令 1) 操作系统版本查看 lsb_release -a 2) 编码查看 # 命令 locale # 文件 /etc/default/locale 3) 用户相关 is not in the sudoers file 其实就是没有权限进行sudo,解决方法如下: 1.切换到 阅读全文
posted @ 2022-11-04 10:22 panie2015 阅读(33) 评论(0) 推荐(0) 编辑
摘要:wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo dpkg -i google-chrome-stable_current_amd64.deb 阅读全文
posted @ 2022-11-03 19:32 panie2015 阅读(27) 评论(0) 推荐(0) 编辑
摘要:1.源列表在哪?这个命令就可以修改了,通常你需要换源的时候需要。通常推荐使用阿里源、清华源等 /etc/apt/sources.list就是源列表所在地址了。 sudo vi/etc/apt/sources.list 2.sudo apt-get update:这个命令,会访问源列表里的每个网址,并 阅读全文
posted @ 2022-11-03 13:38 panie2015 阅读(2241) 评论(0) 推荐(0) 编辑
摘要:日志中文乱码 在新安装的Ubuntu系统上运行springboot项目, 查看日志时,发现日志中的中文乱码。 解决方案 检查操作系统的编码, 更改编码格式。 使用 locale 查看目前语言,是否是 en_US.UTF-8 locale 使用 locale -a 查看安装语言版本,查看后是有 en_ 阅读全文
posted @ 2022-11-02 11:30 panie2015 阅读(204) 评论(0) 推荐(0) 编辑
摘要:系统版本 lsb_release -a root@master:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 Co 阅读全文
posted @ 2022-11-01 17:12 panie2015 阅读(457) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示