Flarum mac本地化安装配置Guide

Mac 本地化安装配置 Flarum 系统: macOS Monterey + Apple M1 前提: homebrewCN MariaDB 配置 1 2 brew install mariadb brew services restart mariadb 初始化 MariaDB sudo 下配置 1 mysql_secure_installation Composer 1 brew install composer ps. 安装 composer 会连同依赖 php 一同安装,但 flarum 没适配最新的 php [email protected] 1 2 brew install [email protected] brew services restart [email protected] 同环境下还有一个 php,指定一下 PHP8.0 1 2 echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"' >> ~/.zshrc echo 'export PATH="/opt/homebrew/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc Caddy 1 brew install caddy URL 重写——配置 Caddy 在/opt/homebrew/etc/Caddyfile 中添加配置,如果没有该文件,则新建...

March 28, 2022 · 1 min · 116 words · xhwhis

20191010

替换 ls -al `which ls` 或 ls -al $(which ls) 高亮显示 grep locate ls.c | grep ls.c 查找 find find ~ -name "*.c" .c .cpp .sh .h 求总行数 sudo find ~ \( -name "*.[ch]" -o -name "*.sh" -o -name "*.cpp" \) -exec wc -l {} \; | xargs wc -l

March 27, 2022 · 1 min · 50 words · xhwhis

2019917

打印环境变量 echo ${PATH} which ls 查找 ls 命令位 man ls 检索 ls 命令用法 alias a=‘echo hahaha’ 别名 chmod 更改文件权限 chown su - root 切换用户 whoami 身份 who am i 身份+

March 27, 2022 · 1 min · 30 words · xhwhis

2019921

alias 别名 alias x = “cd /home/lws/hzoj” 练习 2 在 root 下生成的文件 更改为 lws .profile 登录时执行 .bashrc 登录后执行 date +"%Y-%m-%d %H:%M:%S"

March 27, 2022 · 1 min · 21 words · xhwhis

avl_tree

avl_tree 节点数 在高度为 h 的 avl 树中,最少节点数 low(h) low(h) = low(h - 1) + low(h - 2) + 1 low(0) = 1 low(1) = 2 最大节点数 max(h) max(h) = 2^h - 1 平衡 LL 型 右旋 RR 型 左旋 LR 型 左旋–>(LL 型)–>右旋 RL 型 右旋–>(RR 型)–>左旋

March 27, 2022 · 1 min · 47 words · xhwhis