一般自己项目,都是本地提交远程github上,然后ssh登陆自己的服务器,然后再切换到项目目录
最后再git pull,然后看到网上说laravel的这个envoy 可以一行命令就可以,于是,研究这个 按照文档操作,然后到
> 确保~/.composer/vendor/bin目录在系统路径PATH中否则在终端中由于找不到envoy而无法执行该命令。
懵逼了,百度了下,先百度下linux下设置PATH,
在 Ubuntu 系统中有两种设置环境变量 PATH 的方法。第一种适用于为单一用户设置PATH,第二种是为全局设置 PATH。
第一种方法: 在用户主目录下有一个 .bashrc 文件,可以在此文件中加入 PATH 的设置如下: export PATH=”$PATH:/your path1/:/your path2/…..” 注意:每一个 path 之间要用 “:“ 分隔。 注销重启 X 就可以了。
第二种方法: 在 /etc/profile中增加。 PATH=“$PATH:/home/zhengb66/bin” export PATH
开始 用的是第一种,第一种是用户目录设置,比较安全,发现设置后没有效果,于是换成第二种
设置完后,可以执行source /etc/profile 来及时生效,省得重启,
再执行envoy --version 发现报错了,终于不是显示envoy:找不到的命令了,
报错: > /home/ylsc/.composer/vendor/bin/envoy: 17: /home/ylsc/.composer/vendor/bin/envoy: /home/ylsc/.composer/vendor/laravel/envoy/envoy: Permission denied
发现是这个权限不够,这还不简单 sudo chmod -R 777 /home/ylsc/.composer/vendor/laravel/envoy/envoy
本站(PHP --> Golang)已重构,代码开源
当你能力不能满足你的野心的时候,你就该沉下心来学习
Your requirements could not be resolved to an installable set of packages.
下载一个包 报了这个错,
还有报错信息是
Problem 1
- intervention/image 2.3.8 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.8 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.7 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.6 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.5 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.4 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.3 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.2 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.3.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- Installation request for intervention/image ^2.3 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8].
To enable extensions, verify that they are enabled in those .ini files:
- /usr/local/php/etc/php.ini
- /usr/local/php/etc/php.d/ext-imagick.ini
- /usr/local/php/etc/php.d/ext-memcache.ini
- /usr/local/php/etc/php.d/ext-memcached.ini
- /usr/local/php/etc/php.d/ext-opcache.ini
- /usr/local/php/etc/php.d/ext-redis.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
看报错信息,发现是我的环境里 的php扩展 fileinfo 没有安装
我的环境是 OneinStack ,所以找到 这个包,然后 在里面执行 ./addons.sh
然后第四项

按照条件执行安装就行了
最后执行 composer require intervention/image
##### Ok
本站(PHP --> Golang)已重构,代码开源
当你能力不能满足你的野心的时候,你就该沉下心来学习