问题
解夏(̿▀̿ ̿Ĺ̯̿̿▀̿ ̿)
这个作者很懒,什么都没留下…
展开
-
centos防火墙关闭了,外网依然无法访问
问题1docker启动后提示WARNING: IPv4 forwarding is disabled. Networking will not work.解决方案如下:修改配置文件:vim /usr/lib/sysctl.d/00-system.conf追加 net.ipv4.ip_forward=1接着重启网络[root@localhost mytomcat]# systemctl restart network问题2防火墙是关闭的,本机能访问,但是其他机器访问不通。解决方原创 2021-11-03 16:21:59 · 2856 阅读 · 1 评论 -
配置yum 百度源
vim /etc/yum.repos.d/CentOS-Base.repo # CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close to the client. You should原创 2021-11-02 11:48:50 · 808 阅读 · 0 评论 -
goland debug Got a connection, launched process /private/var/folders/l9/
把你docker关了原创 2021-03-05 20:20:09 · 1144 阅读 · 0 评论 -
golang中os.Rename移动文件出现 error rename *** :invalid cross-device link错误
如题,在linux上移动文件夹(从内存目录移动到硬盘目录,文件也一样)出现 invalid cross-device link 错误翻译:无效的跨设备链接原因:两个分区使用了不同的文件系统,试图在两个不同的分区(或网络目录)之间创建软链接而引起的解决:golang中执行原生linux命令 import "os/exec" var cmd *exec.Cmd cmd = exec.Command("cp", "r",copypath,targetpath) _, err = cmd.Output原创 2021-03-03 21:50:49 · 1624 阅读 · 1 评论 -
gorm 返回 ErrRecordNotFound问题
传入接收结果集的变量只能为Struct类型或Slice类型当传入变量为Struc类型时,如果检索出来的数据为0条,会抛出ErrRecordNotFound错误当传入变量为Slice类型时,任何条件下均不会抛出ErrRecordNotFound错误...原创 2021-03-03 21:45:39 · 2337 阅读 · 1 评论 -
maven 提示 找不到 jar包
pom.xml中repositories改成如下,解决问题:<repositories> <repository> <id>spring-milestones</id> <name>Spring Milestones</name> <url>https://repo.spring.io/milestone</url>原创 2020-10-24 17:29:12 · 159 阅读 · 0 评论