当前位置:网站首页>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 !!!
边栏推荐
猜你喜欢
Web security summary
836. 合并集合(DAY 63)并查集
Kibana - installation and configuration of kibana
laravel 时区问题timezone
Vulnhub's Nagini
Kubernetes three dozen probes and probe mode
ftp登录时,报错“530 Login incorrect.Login failed”
Vulnhub pyexp
Yintai department store ignites the city's "night economy"
解决msvcp120d.dll和msvcr120d.dll缺失
随机推荐
Mysql根据时间搜索常用方法整理
《剑指offer 04》二维数组查找
Solution à la défaillance de l'installation d'Electron
Uniapp implementation Click to load more
Notes on 32-96 questions of sword finger offer
vulnhub之presidential
R语言ggplot2可视化:gganimate包创建动态折线图动画(gif)、使用transition_reveal函数在动画中沿给定维度逐步显示数据、在折线移动方向添加数据点
DNS多点部署IP Anycast+BGP实战分析
并发编程-单例
The tutor put forward 20 pieces of advice to help graduate students successfully complete their studies: first, don't plan to take a vacation
安装electron失败的解决办法
vulnhub之Ripper
为什么我的mysql容器启动不了呢
MySQL uses the method of updating linked tables with update
DEJA_VU3D - Cesium功能集 之 054-模拟火箭发射全过程
Introduction to the implementation principle of rxjs observable filter operator
vulnhub之pyexp
C language utf8toutf16 (UTF-8 characters are converted to hexadecimal encoding)
The world's most popular font editor FontCreator tool
The R language uses the hist function in the native package (basic import package, graphics) to visualize the histogram plot