Ubuntu 更改用户家目录

# 以www-data为例(项目中遇到需要以www-data运行 chromium,但是chromium 无法在 /var/www 中运行) vim /etc/passwd # 找到www-data ...

Linux 11个月前

MeiliSearch 安装

# install curl -L https://install.meilisearch.com | sh # move sudo mv meilisearch /usr/bin # add sys...

Linux 1年前

centos 升级php74

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum remove php php-* php73* yum ...

Linux 1年前

wsl 安装 v8js

wsl version: 2 windows version: 11 subSystem: ubuntu20.04 php version: 8.1 python version: 3.8.1 ws...

Linux 1年前

Ubuntu20 LTS 扩容 hyper-v

在hyper-v设置中扩虚拟硬盘容量 进入ubuntu: sudo growpart /dev/sda 2 sudo resize2fs /dev/sda2

Linux 1年前

inodes用完导致 no space left on device but there is space

no space left on device but there is space查看占用 df -hl 还有剩余空间 查看  inode df -i 已使用完 inode 只能在格式化分区时才能...

Linux 2年前

Dart 数据类型 - List

Dart 数据类型 - List js 中的数组 声明方式 字面量方式 List l1 = []; // 不限定元素类型 List l2 = <String>[]; // 限定元素类型必...

Dart 2年前

Dart 数据类型 - Boolean

Dart 数据类型 - Boolean   dart 通过 bool 关键字来声明布尔类型变量 布尔类型只有两个值 true false 对变量进行判断时,要显式地检查布尔值 (if 只能判断布尔值...

Dart 2年前

Dart 数据类型 - String

Dart 数据类型 - String   声明 单双引号声明 三引号 可以保留换行符 拼接 +  str1 + str2 模板字符串 “$str1 $str2” 常用 Api https://api...

Dart 2年前

Dart 数据类型 - Number

Number 数字类型 (整型,浮点型) int 整型 (必须是整型) double (既可以是整型 实际还是浮点型,也可以是浮点型) viod main() { double n1 = 1; pr...

Dart 2年前

PHP Google Translate Api V2使用代理

Google Translate Api V2使用代理 谷歌翻译 api 的官方文档实在反人类 use Google\Auth\HttpHandler\Guzzle6HttpHandler; use...

PHP 2年前

Laravel 多态关联,中间表触发事件

laravel9 多态关联 使用 sync 更新时中间表没有触发事件 #posts -id -title #videos -id -title -url #tags -id -name #tagga...

laravel 2年前

WSL 使用 mkcert 为本地域名创建ssl证书

WSL安装mkcert wget https://github.com/FiloSottile/mkcert/releases/download/v1.4.3/mkcert-v1.4.3-linux...

Linux 2年前

ckeditor5 Media 插入媒体原样保存(Embed,Iframe)

使用ckeditor5插入youtube视频,预览时可以查看视频,保存到数据库再展示到页面却没有 保存到数据库的代码为  <figure class="media"> <oembe...

HTML+CSS 2年前

ubuntu Mysql table is marked as crashed | mysql 数据表修复

问题:`Table 'posts' is marked as crashed and last (automatic?) repair failed` 环境 ubuntu 20 mysql 8 处理...

Linux 2年前

ubuntu20 use mpm_event

apache2 默认使用 mpm_prefork 切换为 mpm_event steps: sudo a2dismod apache2 sudo a2dismod php7.4 suod a2dis...

Linux 2年前

laravel authorizeResource 授权资源控制器 排除指定方法

public function __construct() { $this->authorizeResource(User::class, 'user', ['except' => ['...

laravel 2年前

Ubuntu 16 升级 mysql8

源 wget https://repo.mysql.com/mysql-apt-config_0.8.8-1_all.deb sudo dpkg -i mysql-apt-config_0.8.8-...

Linux 3年前