当前位置:网站首页>Symlink(): solution to protocol error in PHP artisan storage:link on win10
Symlink(): solution to protocol error in PHP artisan storage:link on win10
2022-07-03 11:59:00 【ignativs amor】
background
Learning file storage modules from documents , Here, you need to enter the configuration file filesystems Set the soft connection you want
/* |-------------------------------------------------------------------------- | Symbolic Links |-------------------------------------------------------------------------- | | Here you may configure the symbolic links that will be created when the | `storage:link` Artisan command is executed. The array keys should be | the locations of the links and the values should be their targets. | */
'links' => [
public_path('storage') => storage_path('app/public'),
],

As shown in the document : Once configured , You need to perform
- php artisan storage:link
Soft connection can take effect ;
problem
But after I execute the above order , Tips symlink (): Protocol error, What reminds me here is , My local installation is homestead, I don't know it's not a configuration problem , Open the document and look again ;
The last step of the document reads as follows :
therefore , I copied this configuration , But after I re entered the virtual machine , perform php artisan command , Or hint symlink (): Protocol error, Even with sudo It's still this mistake , I started Baidu at this time ;
It is suggested to use CMD As the administrator of , That's all right. ;
result
therefore :
1、 sign out homestead And shut down vagrant
1、exit
2、vagrant halt

2、 The administrator enters CMD, Then go to the virtual machine

And then execute php artisan command :
Show successful execution , At this time, I can directly visit storage Under the table of contents , Uploaded pictures ; Successful visit !!!
边栏推荐
猜你喜欢
![Capturing and sorting out external Fiddler -- Conversation bar and filter [2]](/img/04/e9cc027d753e7049f273d866eefdce.png)
Capturing and sorting out external Fiddler -- Conversation bar and filter [2]

(database authorization - redis) summary of unauthorized access vulnerabilities in redis

ArcGIS应用(二十一)Arcmap删除图层指定要素的方法

《剑指offer 04》二维数组查找

【学习笔记】dp 状态与转移

Based on MCU, how to realize OTA differential upgrade with zero code and no development?

PHP导出word方法(一mht)

vulnhub之GeminiInc v2

CGroup introduction

Slam mapping and autonomous navigation simulation based on turnlebot3
随机推荐
Kubernetes three dozen probes and probe mode
win10 上PHP artisan storage:link 出现 symlink (): Protocol error的解决办法
《剑指offer 04》二维数组查找
利用Zabbix动态监控磁盘I/O
XML (DTD, XML parsing, XML modeling)
Unity3D学习笔记5——创建子Mesh
Cacti monitors redis implementation process
The tutor put forward 20 pieces of advice to help graduate students successfully complete their studies: first, don't plan to take a vacation
ftp登录时,报错“530 Login incorrect.Login failed”
Raven2 of vulnhub
R语言使用data.table包进行数据聚合统计计算滑动窗口统计值(Window Statistics)、计算滑动分组中位数(median)并合并生成的统计数据到原数据集中
Excel表格转到Word中,表格不超边缘纸张范围
量化计算调研
优化接口性能
Talk about the state management mechanism in Flink framework
previous permutation lintcode51
Qt OpenGL相机的使用
uniapp scroll view 解决高度自适应、弹框滚动穿透等问题。
Redis 笔记 01:入门篇
Qt OpenGL 旋转、平移、缩放