apt install php8.2 apt install php8.2-cli php8.2-common php8.2-curl php8.2-gd php8.2-mysql php8.2-xml php8.2-mbstring php8.2-zip php8.2-intl
-
debian安装php8.2+laravel环境
-
本地环境搭建备注
VirtualBox 添加centos9后 无法与本地互联,centos9里 nmcli device 显示 enp0s8 disconnected,
需要使用
nmcli
创建和配置新的连接sudo nmcli connection add type ethernet ifname enp0s8 con-name enp0s8-static
vi /etc/NetworkManager/system-connections/enp0s8-static.nmconnection
修改ipv4
[ipv4]
method=manual
address1=192.168.11.88/24,192.168.11.1
dns=114.114.114.11#重载网络配置 nmcli connection reload #也可使用,两个命令一个意思,只不过下面这个是缩写 nmcli c r #重启网卡 nmcli connection up ens01 #注意如果重启网卡失败,检查配置文件。 #查看网卡启动情况 nmcli device
问题2:VirtualBox 与windows共享目录 虚拟机里看不到
-
centos7.9 阿里云服务器环境安装日志
PHP环境安装
sudo yum install -y epel-release sudo yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm 运行以下命令,启用PHP 版本对应的仓库。例如56 sudo yum install -y yum-utils sudo yum-config-manager --enable remi-php56 安装php sudo yum install -y php php-cli php-pgsql php-fpm php--pgsql php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json php-xmlreader 安装redis扩展 wget https://github.com/nicolasff/phpredis/archive/2.2.8.tar.gz mv 2.2.8.tar.gz redis-2.2.8.tar.gz tar xvzf redis-2.2.8.tar.gz cd phpredis-2.2.8 /usr/bin/phpize ./configure --with-php-config=/usr/bin/php-config make make install 安装完成之后,会出现nstalling shared extensions: /usr/lib64/php/modules/ vim etc/php.ini 添加extension=redis.so 到/etc/php.d/的目录下redis.ini 安装mongo扩展 yum install openssl-devel 下载PHP-mongodb扩展 (https://pecl.php.net/package/mongo) wget http://pecl.php.net/get/mongo-1.6.12.tgz tar xvzf mongo-1.6.12.tgz cd mongo-1.6.12 phpize ./configure --with-php-config=/usr/bin/php-config make && make install 在安装过程中可能会报以下错误 /var/tmp/mongo/contrib/php-ssl.h:33:25: error: openssl/evp.h: No such file or directory 需要安装openssl-devel yum install openssl-devel 在php.ini文件中添加extension=mongo.so extension=mongo.so
参考链接:https://help.aliyun.com/zh/ecs/use-cases/manually-build-an-lnmp-environment-on-a-centos-instance?spm=5176.2020520104.console-base_help.dexternal.60b643ecYEoYrX#095b2f6d35yoo
-
The ‘cursor’ option is required, except for aggregate with the explain argument #1530
laravel5的解决方案
-
深度学习框架安装日志
1. Download Anaconda:
- Link: Anaconda
2. Download Visual Studio C++ Redistributables:
3. TensorFlow-GPU Installation:
- Visit TensorFlow Installation Guide and go to the TensorFlow-GPU section.
- Check for the latest versions and requirements.
4. Anaconda Environment Setup:
a. Open Anaconda prompt as administrator.
b. Create a new environment:
conda create -n tf_gpu python==3.9
c. Activate the environment:
conda activate tf_gpu
5. Install CUDA and cuDNN:
a. Check the required versions from the TensorFlow-GPU section (Step 3).
b. Install CUDA and cuDNN using conda:
conda install cudatoolkit=11.2 cudnn=8.1 -c=conda-forge
//国内安装会失败 手工下载地址
coda:https://developer.nvidia.com/cuda-toolkit-archive
cudnn:https://developer.nvidia.com/rdp/cudnn-archive
6. Install TensorFlow-GPU:
Install the latest TensorFlow-GPU version (replace 2.10.0 with the latest version):
pip install --upgrade tensorflow-gpu==2.10.0 python版本要求,不能过高也不能过低:https://tensorflow.google.cn/install/source?hl=zh-cn#tested_build_configurations
Verification:
- Open Python: via cmd/ powershell.
python
- Import TensorFlow:
import tensorflow as tf
- Check GPU availability:
print(tf.test.is_gpu_available())
-
centos7.9安装laravel11日志
下载laravel地址:https://github.com/laravel/laravel/releases
下载到指定目录后
1、执行命令:
composer install
(如果超时,设置阿里云源
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
)2、设置目录权限 /storage/* 包括子目录 777权限
报错production.ERROR: No application encryption key has been specified. {“exception”:”[object] (Illuminate\Encryption\MissingAppKeyException(code: 0)
需要设置.env目录里的APP_KEY值未空,
生成命令:
php artisan key:generate
# 每次修改env后清楚缓存
php artisan config:clea
rphp artisan config:cache
-
APP以隐私政策弹窗的形式向用户明示收集使用规则,未经用户同意,存在收集Android ID的行为。
解决办法:
修改platforms\android\app\src\main\java\org\apache\cordova\device\Device.java中的初始化函数:
修改后:
public void initialize(CordovaInterface cordova, CordovaWebView webView) {
super.initialize(cordova, webView);
Device.uuid = “”; //这里直接改成空字符串
}
-
centos下 安装couchdb
Err:11 https://apache.bintray.com/couchdb-deb buster InRelease
403 Forbidden
更新下资源https://docs.couchdb.org/en/stable/install/unix.html#enabling-the-apache-couchdb-package-repository
Unable to start CouchDB,couchdb无法启动是因为配置文件不完善
To work around this, add a section like the following to your /opt/couchdb/etc/local.ini file:
[admins]
admin = password -
mac生成ios包 报错
Cannot find module ‘esc-pos-encoder’
2023-6-2
cnpm install esc-pos-encoder@1.3.0 (不能安装其它版本)ionic项目 ios打包白屏
可能是构建app的时候 插件没有打包进去(之前使用的命令(cordova platform add ios) 没有加ionic)
换app名称打包的话 最好是重新删除/添加平台(ios/android)
ionic cordova platform remove ios
ionic cordova platform add ios@6.1
ionic cordova platform remove android
ionic cordova platform add android@10.1.2
npm run remove_wechat_xxx
ionic cordova prepare android (卸载插件后,重建项目以确保所有更改生效,在安装新的插件)
npm run rebuild_wechat_xxx
注意:安卓版 安装cordova-wechat插件 ,需要协助wechat1 安装wechat2后,再卸载wechat1 然后再安装wechat2插件
ionic cordova plugin add cordova-plugin-inappbrowser@4.1
ionic cordova plugin add cordova-plugin-wechat@2.8.0
cordova plugin remove cordova-plugin-wechat –variable wechatappid=wx_appid
重新编译后,重点检查插件功能,微信登陆,扫码,后台inappbrowser打开
安卓 删除platform 重加后 扫码功能闪退(phonegap-plugin-barcodescanner)
原因未知,需要复制platforms\android\ 才生效
(原因在platforms\android\gradle.properties这个文件,少了下面两行)
android.useAndroidX = true
android.enableJetifier = true这将告诉 Gradle 自动迁移项目中的旧版支持库到 AndroidX。
原因分析:
phonegap-plugin-barcodescanner
插件可能默认使用了旧版的 Android 支持库,而您的项目使用了 AndroidX。当项目中同时存在旧版支持库和 AndroidX 时,会出现冲突,导致构建失败或运行时崩溃。
安卓 安装插件cordova-plugin-wechat@2.8.0后,打包报错:
Could not find any matches for com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+ as no versions
of com.tencent.mm.opensdk:wechat-sdk-android-with-mta are available.官方安卓配置:https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/Android.html
原因是:(从5.4.3版本开始,wechat–sdk–android-with-mta不再维护)
解决办法:
修改:android\cordova-plugin-wechat\cashier-android-build.gradle里的com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+为 com.tencent.mm.opensdk:wechat-sdk-android:+
路径:https://central.sonatype.com/artifact/com.tencent.mm.opensdk/wechat-sdk-android/
正确的pkg路径:pkg:maven/com.tencent.mm.opensdk/wechat-sdk-android@*
ionic 打包的时候 报错 Cordova ios-deploy was not found
解决办法:拔掉手机数据线
安卓新版本 cordova-android 10.1.2 ,启用微信sdk失效,报错,提示未安装微信
在主工程的AndroidManifest.xml (platforms\android\app\src\main\文件夹里)中增加
<queries>
<package android:name=”com.tencent.mm” />
</queries>
-
右侧 因为modal导致右侧留白越来越大
modal class里的modal样式增加fade 解决