上一页 1 2 3 4 5 6 ··· 13 下一页
摘要: public void rankFileByTime() { String s = "文件夹路径"; File file = new File(s); File[] files = file.listFiles(); Arrays.asList(files).forEach(x -> System. 阅读全文
posted @ 2023-02-20 14:17 不要西红柿 阅读(232) 评论(0) 推荐(0)
摘要: 1. 将本地的容器打包成自命名的镜像 docker commit -a "authorName" -m "desc" 容器id new_image_name:version 2.将镜像打包输出到tar文件 docker save -o myImage.tar new_image_name:versi 阅读全文
posted @ 2023-01-09 13:16 不要西红柿 阅读(2866) 评论(0) 推荐(0)
摘要: -- 创建用户 create user 'username'@'%' IDENTIFIED by 'password'; -- 给用户权限 GRANT ALL PRIVILEGES on weather.* to 'weather'@'%'; 阅读全文
posted @ 2023-01-08 22:57 不要西红柿 阅读(111) 评论(0) 推荐(0)
摘要: -- 找到mysql配置文件修改 /etc/mysql/mysql.conf.d/mysqld.cnf #加上下面的 可以不要密码登录 #skip-grant-tables #skip-networking 然后重启mysql服务 service mysql restart 情况一:没有root用户 阅读全文
posted @ 2023-01-08 22:10 不要西红柿 阅读(113) 评论(0) 推荐(0)
摘要: git checkout branchName 切换分支 git switch branchName 切换分支 git checkout -b newBranchName 从当前分支拉去代码创建分支,并切换到新分支 git checkout -b test origin/test 拉取远程分支到本地 阅读全文
posted @ 2022-12-20 13:53 不要西红柿 阅读(24) 评论(0) 推荐(0)
摘要: 修改远程仓库的地址: 1、先把当前远程仓库地址删除(删除原有仓库) git remote rm origin 2、添加新的仓库地址(更换的新地址) git remote add origin git@url 查看远程仓库地址 git remote -v 初始化项目推送到远程仓库: # 添加远程地址 阅读全文
posted @ 2022-12-19 14:11 不要西红柿 阅读(1527) 评论(0) 推荐(0)
摘要: 使用 npm install -g @vue-cli 安装脚手架可以安装到新版本。 vue create project_name 创建一个项目。 阅读全文
posted @ 2022-12-19 11:19 不要西红柿 阅读(126) 评论(0) 推荐(0)
摘要: 1、在mysql的配置文件中设置 bind-address=0.0.0.0 2、在database mysql中设置root用户的host为 % 安装deb后使用 apt-cache policy mysql-server 查看是否有安装包,然后apt install mysql-client=5. 阅读全文
posted @ 2022-12-09 11:50 不要西红柿 阅读(142) 评论(0) 推荐(0)
摘要: // 将int解析成二进制,再根据二进制转换成float Float f = Float.intBitsToFloat(i.intValue()); // 格式化float,固定显示的小数点位数。 DecimalFormat df = new DecimalFormat("0.000000"); S 阅读全文
posted @ 2022-11-19 21:52 不要西红柿 阅读(688) 评论(0) 推荐(0)
摘要: route -n 查看路由信息。 route 中default为 0.0.0.0 route 中网关一般是.1或.254 阅读全文
posted @ 2022-11-18 14:34 不要西红柿 阅读(340) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 13 下一页