使用aiohttp可以创建本地API接口用于远程调用SenseHat,再配合frp,可以实现在线调用SenseHat。
Archive | How To
解决artisan migrate出错Specified key was too long; max key length is 767 bytes
修改laravel/config/database.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
'mysql' => [ 'driver' => 'mysql', 'url' => env('DATABASE_URL'), 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'unix_socket' => env('DB_SOCKET', ''), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, 'engine' => null, 'options' => extension_loaded('pdo_mysql') ? array_filter([ PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), ]) : [], ], |
从
1 2 |
'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', |
调整为
1 2 |
'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', |
删除出错但已经创建的数据表后,重新php artisan migrate
解决composer内存溢出导致无法执行命令
运行composer命令退出
1 2 3 4 5 6 |
# composer require laravel/sanctum Using version ^2.4 for laravel/sanctum ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Killed |
查找composer安装位置
1 2 |
which composer /usr/local/bin/composer |
官方文档-内存限制错误
匿名FTP通过目录映射访问Object Storage配置实例
vsftp匿名访问Object Storage配置实例
使用s3fs和vsftp创建一个基于Object Storage的匿名FTP服务器
使用s3fs和vsftp创建一个基于Object Storage的匿名FTP服务器