MySQl只能本地登录,无法远程登录 环境:UbuntuMysql 5.7.20判断Mysql的端口状态netstat -apn |grep 3306 如果输出结果包括tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN -时,说明监听的host为127.0.0.1,只能本地访问,需要设置监听host:
ubuntu16.04设置命令行启动 1. 修改配置文件sudo vim /etc/default/grub GRUB_CMDLINE_LINUX="" 改为GRUB_CMDLINE_LINUX="text" 去掉注释#GRUB_TERMINAL=console,即 GRUB_TERMINAL=console2. 系统生效sudo update-grub sudo systemctl set-default mu
maven项目单元测试时ClassNotFoundException问题 项目出现ClassNotFoundException的原因有几种: 1. 未引入相关jar包 2. jar包有问题 3. 代码不编译(测试类找不到)
算法第十八周作业01 DescriptionGiven an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i].Solve it without division and in
算法第十七周作业01 DescriptionGiven a binary search tree, write a function kthSmallest to find the kth smallest element in it.Solution查找二叉树的top K问题
算法第十六周作业01 DescriptionFind the total area covered by two rectilinear rectangles in a 2D plane. 求解两个矩形的并集面积
算法第十五周作业01 DescriptionGiven an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every
算法第十四周作业01 DescriptionGiven an unsorted array of integers, find the length of the longest consecutive elements sequence.
算法第十三周作业02 DescriptionGiven a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning of s.
Kubernetes中的nodePort,targetPort,port的区别和意义 1. nodePort 外部机器可访问的端口。 比如一个Web应用需要被其他用户访问,那么需要配置type=NodePort,而且配置nodePort=30001,那么其他机器就可以通过浏览器访问scheme://node:30001访问到该服务,例如http://node:30001。 例如MySQL数据库可能不需要被外界访问,只需被内部服务访问,那么不必设置NodePort2. targe