当前位置:网站首页>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 !!!
边栏推荐
- 安装electron失败的解决办法
- 836. Merge sets (day 63) and search sets
- 量化计算调研
- Sheet1$. Output [excel source output] Error in column [xxx]. The returned column status is: "the text is truncated, or one or more characters have no matches in the target code page.".
- Unity3D学习笔记5——创建子Mesh
- MySQL searches and sorts out common methods according to time
- 小鹏 P7 撞护栏安全气囊未弹出,官方回应称撞击力度未达到弹出要求
- 在CoreOS下部署WordPress实例教程
- STL教程8-map
- STL Tutorial 9 deep copy and shallow copy of container elements
猜你喜欢
Vulnhub's presidential
Solution to the second weekly test of ACM intensive training of Hunan Institute of technology in 2022
STL教程10-容器共性和使用场景
STL tutorial 10 container commonalities and usage scenarios
小鹏 P7 撞护栏安全气囊未弹出,官方回应称撞击力度未达到弹出要求
OpenGL 绘制彩色的三角形
【mysql专项】读锁和写锁
Php Export word method (One MHT)
OpenGL 索引缓存对象EBO和线宽模式
Vulnhub narak
随机推荐
PHP导出word方法(一mht)
"Jianzhi offer 04" two-dimensional array search
Ripper of vulnhub
Qt OpenGL 旋转、平移、缩放
vulnhub之tomato(西红柿)
vulnhub之presidential
DEJA_VU3D - Cesium功能集 之 054-模拟火箭发射全过程
Groovy测试类 和 Junit测试
The uniapp scroll view solves the problems of high adaptability and bullet frame rolling penetration.
安裝electron失敗的解决辦法
MySQL searches and sorts out common methods according to time
Xiaopeng P7 hit the guardrail and the airbag did not pop up. The official responded that the impact strength did not meet the ejection requirements
Introduction to the implementation principle of rxjs observable filter operator
vulnhub之narak
Vulnhub's Nagini
PHP导出word方法(一phpword)
Oracle advanced (I) realize DMP by expdp impdp command
Xml的(DTD,xml解析,xml建模)
外插散点数据
VS2015的下载地址和安装教程