我正在尝试通过homestead ssh
以下方式连接到vagrant :
vagrant@127.0.0.1's password:
Run Code Online (Sandbox Code Playgroud)
但我的公钥密码不起作用.
我的Homestead.yaml看起来像这样:
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
Run Code Online (Sandbox Code Playgroud)
我正在使用"Laravel Homestead版本2.0.14"和"Vagrant 1.7.2".
当我按住左或右箭头键时,有没有办法移动光标.在以前的OSX版本中它曾经工作过.在我更新到Sierra之后,当我按住箭头键时,我的光标没有移动.
当我在我的React Native应用程序项目文件夹中执行yarn start时出现此错误:
yarn run v1.3.2
$ react-native-scripts start
21:58:08:无法启动服务器
有关更多信息,请参阅https://git.io/v5vcn,安装watchman或运行以下代码片段:
sudo sysctl -w kern .maxfiles = 5242880
sudo sysctl -w kern.maxfilesperproc = 524288错误命令失败,退出代码为1.
info 有关此命令的文档,请访问https://yarnpkg.com/en/docs/cli/run.
我已经看到stackoverflow上的许多用户都有类似的问题,但是根据答案,我无法使其工作.
当我跑:
php artisan migrate
Run Code Online (Sandbox Code Playgroud)
我明白了:
[PDOException]
SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
Run Code Online (Sandbox Code Playgroud)
这是我的app/config/app.php
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'mio_sito',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
Run Code Online (Sandbox Code Playgroud)
问题是我实际上没有密码,如果我登录到vagrant:
vagrant ssh
Run Code Online (Sandbox Code Playgroud)
我可以访问mysql:
mysql -u root
Run Code Online (Sandbox Code Playgroud)
并且不需要密码.
我该如何解决这个问题?
vagrant ×2
arrow-keys ×1
homestead ×1
laravel-5 ×1
macos-sierra ×1
mysql ×1
react-native ×1
ssh ×1
yarnpkg ×1