首页
  • 解决 Mac 升级为 Big Sur 系统后 Homebrew 命令失效的问题

    错误

    在 MacBook 上用 Homebrew 更新软件包时,所有 brew 命令均报错:/usr/local/Homebrew/Library/Homebrew/version.rb:368:in `initialize’: Version value must be a string; got a NilClass () (TypeError)

    阅读全文
  • scp 远程传输

    scp 远程传输

    scp ./dist/* root@xxx.xxx.xxx.xx:/data/web/dir_name/
    阅读全文
  • vite vue3 错误处理

    vite vue3 报错:

    $ vite
    events.js:377
          throw er; // Unhandled 'error' event
          ^
    
    Error: spawn D:\project\3rd-vite-vue3\node_modules\esbuild\esbuild.exe ENOENT
    阅读全文
  • mysql-优化-索引-笔记-创建-删除

    创建索引
    create index index_name on table_name (column_list)
    查看索引
    show index from table_name
    删除索引
    drop index index_name on talbe_name
    阅读全文
  • 学习-nginx开启负载均衡分发至2个docker容器

    自己开发的小应用每次重启docker,可能代码有bug或者服务重启,会导致正在使用的用户出现问题。所以部署两个docker容器跑,这样一个挂掉或者重启时,可以切换至另一个服务。也学习了解下nginx的负载均衡。

    # 负载均衡
    upstream myNginx { 
        server 127.0.0.1:203;  #容器一
    阅读全文
  • Centos 安装 vsftpd 配置和命令

    安装
    # 检查是否安装
    > rpm -q vsftpd
    
    # 安装
    > yum -y install vsftpd
    
    # 启动服务
    > systemctl start vsftpd.service
    
    # 禁止匿名用户登陆
    > vim /etc/vsftpd/vsftpd.conf
    
    # 将匿名登陆改成NO
    阅读全文
  • docker 部署 golang应用

    Dockerfile

    FROM golang:latest
    
    WORKDIR $GOPATH/src/app
    COPY . $GOPATH/src/app
    
    RUN export GO111MODULE=on
    RUN export GOPROXY=https://goproxy.cn
    RUN go env -w GO111MODULE=on
    阅读全文
  • flutter 学习入门 创建项目并运行

    //  创建flutter 项目
    flutter create myapp
    
    // mac 打开 虚拟机
    open -a Simulator
    
    // 检查运行的设备
    flutter devices
    
    // 运行 flutter
    flutter run
    
    // 打包 apk
    flutter build apk
    
    阅读全文
  • Taro hooks mobx

    import { useState, useEffect } from '@tarojs/taro'
    import { View } from '@tarojs/components'
    // import getStore from "@/store"
    阅读全文
  • leetCode 两数相加

    /**
     * Definition for singly-linked list.
     * function ListNode(val, next) {
     *     this.val = (val===undefined ? 0 : val)
     *     this.next = (next===undefined ? null : next)
     * }
     */
    /**
    阅读全文
  • 上一页 1 2 3 4 5 6 7 8 9 下一页
Taoqun
陶群
1994-09-07
taoquns@foxmail.com
前端开发
南京

文章分类

Mac
算法
前端
python
golang
mysql
node
linux
随笔
生活
游记

我的作品

记录体重Pro(小程序)
闲蝉科技

其他推荐

video 手机全屏自动播放
微信当前浏览器内置函数
使用 highlight.js 高亮代码
golang 语言 windows下编译linux下运行文件 go build
Typescript 给setTimeout 的返回值定义为 number出错
vite vue3 错误处理
前端算法,深度遍历和广度遍历
开发者:Taoqun

备案/许可证编号为:皖ICP备17027395号

闲蝉科技