是的,大年初一,刚换完的IP又又又都挂了。。。
Archive | DEV
除夕夜的礼物,全面断网
下午18:30收到监控报警,服务无法访问,本来以为是网络问题,没想后来连主服务器都连不上,才明白过来这次是全面断网。。。
升级到PHP7.4导致的支付宝回调失败
环境
- laravel
- Omnipay\Omnipay
- lokielse/omnipay-alipay
今天把系统php版本升级至7.4后,有用户反馈充值后未到账,遂进行了漫长的debug。
HyperLPR on Raspberry Pi
HyperLPR on Raspberry Pi
1 |
python -m pip install hyperlpr |
解决:ModuleNotFoundError: No module named ‘cv2’
1 |
pip3 install opencv-python |
解决:ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory
1 |
apt-get install libopenjp2-7 |
解决:ImportError: libImath-2_2.so.23: cannot open shared object file: No such file or directory
1 |
apt install libilmbase23 |
解决:ImportError: libIlmImf-2_2.so.23: cannot open shared object file: No such file or directory
1 |
apt install libopenexr-dev |
解决:ImportError: libavcodec.so.58: cannot open shared object file: No such file or directory
1 |
apt-get install python-opencv |
在Debian中使用composer全局程序
编辑文件
1 |
nano /etc/profile |
将 $HOME/.config/composer/vendor/bin 添加至PATH中
1 2 3 4 5 6 7 8 9 |
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). if [ "`id -u`" -eq 0 ]; then PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$HOME/.config/composer/vendor/bin" else PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" fi export PATH |
运行Laravel
1 2 3 4 5 |
composer global require laravel/installer laravel new example-app php artisan serve |