0%

Tmux的使用 说明:Ctrl+b 为快捷方式的前缀键,即先按下Ctrl+b,快捷键才会生效。 1. 会话管理 1.1 新建会话 tmux new -s <session-name> 1.2 分离会话 在 Tmux 窗口中,

1. 查找和替换 1.1 搜索类命令 输入 / 加上一个字符串可以用以在当前文件中查找该字符串。 1. 在正常模式下输入 / 字符。您此时会注意到该字符和光标都会出现在

vite.config.js import { defineConfig } from "vite"; import { resolve } from "path"; import vue from '@vitejs/plugin-vue'; function pathResolve(dir) { return resolve(__dirname, ".", dir); } export default defineConfig({ base: "", plugins:[vue()], resolve: { alias: { "@": pathResolve("src"), } }, optimizeDeps: { include: ['axios'], }, build: { target: 'modules', outDir: 'dist', assetsDir: 'assets', minify: 'terser' // 混淆器 }, server: { cors: true, open: true, proxy: { '/api': { target:

Vue3路由传参 方法1:页面刷新数据不会丢失 路由 export default { path: '/product/:productId', name: 'product', component: Product } 传入方 import router from "@/router/index.js"; router.push("/product/" + productId) 接收方 import router from "@/router/index.js"; let productId = router.currentRoute.value.params.productId 方法2:使用path来匹配路由

X-ui,支持多协议多用户的 Xray 面板! 1.0 安装x-ui x-ui地址: https://github.com/vaxilu/x-ui acme脚本地址: https://github.com/acmesh-official/acme.sh 1.0.1更新及安装组件 apt update -y # Debian/Ubuntu 命令 apt install -y curl #Debian/Ubuntu 命令 apt

1. 编译安装 wget https://codeload.github.com/redis/redis/tar.gz/refs/tags/7.0.4 -O redis-7.0.4.tar.gz tar zxf redis-7.0.4.tar.gz apt install build-essential cd /redis-7.0.4/src make install cd ../ sed -i 's|daemonize no|daemonize yes|' redis.conf sed -i 's|# supervised auto|supervised no|' redis.conf sed -i 's|bind 127.0.0.1 ::1|bind 0.0.0.0|' redis.conf sed -i 's|protected-mode yes|protected-mode no|' redis.conf sed -i 's|# requirepass foobared|requirepass czyadmin|' redis.conf mkdir /etc/redis cp redis.conf /etc/redis/ /usr/local/bin/redis-server /etc/redis/redis.conf vim /lib/systemd/system/redis.service [Unit] Description=Redis data structure server Documentation=https://redis.io/documentation Wants=network-online.target

# 使用方法 $ git clone https://gitee.com/colzry/my_oh-my-zsh.git $ cd my_oh-my-zsh $ chmod +x install.sh # 注意:如果没有安装zsh,则先安装zsh $ sudo apt install zsh $ ./install.sh $ mv .zshrc ../ # 安装插件 $ git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions $ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 刷新配置文件 $

编译安装Nginx 1. 卸载原有的Nginx dnf remove nginx nginx-common 2. 安装编译依赖 2.1 安装编译工具 dnf install make automake gcc gcc-c++ kernel-devel 2.2 安装编译时需要的依赖 dnf install -y pcre pcre-devel pcre2 pcre2-devel zlib zlib-devel openssl openssl-devel libxslt-devel 2.3 拉

下载并安装cloudreve GitHub仓库地址: https://github.com/cloudreve/Cloudreve/releases 下载arm版本 上传并解压 # 解压程序包 tar -zxvf cloudreve_VERSION_OS_ARCH.tar.gz # 赋予执行权限 chmod +x ./cloudreve # 启动 Cloudreve ./cloudreve 这个时候控制台会

对称加密与非对称加密 1. 对称加密 对称加密又叫做私钥加密,即信息的发送方和接收方使用同一个密钥去加密和解密数据。对称加密的特点是算法公开、加密和