|
问题定位
使用brew update --verbose观察 update 过程:
brew update --verbose
Checking if we need to fetch /usr/local/Homebrew...
Checking if we need to fetch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Fetching /usr/local/Homebrew...
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
发现 update 卡在仓库获取文件的过程
更换 Homebrew 源
# 替换 brew.git:
cd "$(brew --repo)"
git remote ...
|
curl -G -d 'key=value' url
|
遇到此问题大部分都是session目录权限问题,执行如下命令,找到php的session目录
find / -name session
如目录为/var/opt/remi/php72/lib/php/session/
chown www:www -R /var/opt/remi/php72/lib/php/session/
重启php-fpm
systemctl restart php72-php-fpm.service
完美解决!
|
如果gd库中没有freeType,则按照以下步骤进行:
docker-php-ext-configure gd --enable-gd-native-ttf --with-freetype-dir=/usr/include/freetype2 --with-png-dir=/usr/include
重新编译:
docker-php-ext-install gd
如果报错:
configure: error: ![freetype][1]-config not found.
运行: apt-get -y install libfreetype6-dev ,然后再继续运行上面的命令。
gd库中有了freetype,则验证码显示正常了
|
rm -rf ~/.gradle
cd flutter_your_project/android
添加 org.gradle.jvmargs=-DhttpProxyHost=127.0.0.1 -DhttpProxyPort=1080 到 ./gradle.properties文件
执行 ./gradlew
执行 ./gradlew app:properties
cd ../
flutter run
|