首页 > 编程语言 >php laravel artisan nxos:install Error Call to undefined function Illuminate\Filesystem\syml

php laravel artisan nxos:install Error Call to undefined function Illuminate\Filesystem\syml

时间:2023-02-27 18:26:04浏览次数:38  
标签:laravel function Illuminate artisan Filesystem php public

命令

/www/server/php/81/bin/php artisan nxos:install

错误信息

 Error 

  Call to undefined function Illuminate\Filesystem\symlink()

  at vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:335
    331▕      */
    332▕     public function link($target, $link)
    333▕     {
    334▕         if (! windows_os()) {
  ➜ 335▕             return symlink($target, $link);
    336▕         }
    337▕ 
    338▕         $mode = $this->isDirectory($target) ? 'J' : 'H';
    339▕ 

      +11 vendor frames 
  12  app/Console/Commands/Install.php:43
      Illuminate\Console\Command::call()

      +13 vendor frames 
  26  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()

我有同样的问题,解决方案证明很简单:

首先,ssh 到服务器,导航到您的项目文件夹,然后从公用文件夹中删除符号链接:

cd public
unlink storage

最后,运行命令以手动创建符号链接(假设我们仍在 public/ 中):

ln -s ../storage/app/public storage

标签:laravel,function,Illuminate,artisan,Filesystem,php,public
From: https://www.cnblogs.com/fuqian/p/17161390.html

相关文章