-
重置服务器后,ssh连接远程服务器时报错:
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
解决办法:ssh-keygen -R 服务器ip/网址
,然后接下来的询问中输入yes即可。 -
php7里,部署到linux服务器后使用命名空间时提示class not found:
解决办法:
原来代码:$user = new \app\common\model\User();
改成:$user = new \app\common\model\user();
-
Electron中使用sqlite3模块,启动时提示没有找到以下文件
node_modules/sqlite3/lib/binding/electron-v1.6-darwin-x64/node_sqlite3.node'
解决方法:在对应目录下执行以下代码,需要把版本号替换为自己使用的版本号
cd node_modules/sqlite3 && npm run prepublish && node-gyp configure --module_name=node_sqlite3 --module_path=../lib/binding/electron-v1.6-darwin-x64 &&node-gyp rebuild --target=1.6.5 --arch=x64 --target_platform=darwin --dist-url=https://atom.io/download/atom-shell --module_name=node_sqlite3 --module_path=../lib/binding/electron-v1.6-darwin-x64
-
linux中,改变环境变量失误,profile文件出现异常导致command not found时,可执行以下语句
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
网友评论