修改完 /etc/profile中的内容后,执行"立即生效"命令 "source /etc/profile"报错: :command not found :command not found :command not found 解决方法: 执行如下命令(两种方式): 1. locate source /etc/profile (亲测可用) 2. usr/bin/source /etc/profile 参考:https://blog.csdn.net/zhangmi…
由于误操作导致 source /etc/profile 报错 -bash: id:command is not found 此时,linux下很多命令到不能能用,包括vi ls 等... 可以使用 export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin 重新启用这些命令 如果 /etc/profile存在错误而导致source 不能成功,可以使用 /bin/vi  /etc/profil…
go build 困扰我多时的 go 编译报错:循环导入,代码肯定是没问题的,网上查说重新安装go 我觉得也不是太好的办法 import cycle not allowed package day01/hello imports fmt imports errors imports runtime imports internal/bytealg imports internal/cpu imports runtime 环境: ubuntu16.04 go1.11.4 编辑器:vs code 分…
Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with 摘要 Linux系统下安装完MySQL,启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looked up with... Linux系统下装完MySQL,然后重新启动动时报错: 解决方法:  查看cat /etc…
Linux下Tomcat项目启动报错 org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.bw.yun.service.impl.UserServiceImpl] for bean with name 'userServiceImpl' defined in file [/home/bigdata/apache-tomcat-7.0.53/webapps/yun/WEB-…
一.linux下编译make文件报错“/bin/bash^M: 坏的解释器 参考文章:http://blog.csdn.net/liuqiyao_01/article/details/41542101#comments 自己测试的结果: [1]使用windows 下的编辑工具 新建文件doc2unix.sh #!/usr/bin/env bash # test PID=$(ps -aef | grep nginx | grep -v grep | grep master |awk '{print…
今天使用mybatis和jpa的过程中,发现这样一个问题: mybatis执行一个update方法,返回值为1,但是数据库中数据并未更新,粘贴sql语句直接在数据库执行,等待好久报错:Lock wait timeout exceeded; try restarting transaction 最后发现: 1.实体在前面 是使用JPA查询得出的 2.在后面update的时候,是使用mybatis去做update的 这就导致了前面的锁还没有释放,后面update的时候 就在等待锁的释放. 虽然myb…
问题描述 vue-electron 使用sqlite3数据库,执行npm run build 报错如下: .NET Framework 2.0 SDK,Microsoft Visual Studio 2005[C:\temp\wechat\node_modules\sqlite3\build\binding.sln]Failed to execute 'C:\Program Files (x86)\nodejs\node.exe C:\Program Files (x86)\nodejs\nod…
点击上方↑↑↑蓝字[协议分析与还原]关注我们 " 分享unzip工具的一个bug." 最近在研究菠菜站,中间用到了Spidermonkey,碰到一些小波折,在这里分享出来,以便大家快速跳坑. 从全球最大的男性交友网站GitHub上把Spidermonkey-master.zip 这个文件下下来后,在linux下解压的话会报错"symlink error: File name too long",一直无法解压成功. 提示如下错误: 使用的unzip版本如下: 经过一番…
前言 执行命令npm publish报错:403 Forbidden - PUT https://registry.npmjs.org/kunmomotest2 - You cannot publish over the previously published versions: 0.0.1. 原因 不能在以前发布的版本上发布:0.0.1,所以我们需要升版本,更改包的package.json文件的版本号,然后重新发布…