问题
在 Mac 上安装 Jenkins
过程
1 | Install the latest LTS version: brew install jenkins-lts |
在 Mac 上安装 Jenkins
1 | Install the latest LTS version: brew install jenkins-lts |
进入目录,备份
1 | cd /etc/yum.repos.d/ |
换源
1 | wget http://mirrors.aliyun.com/repo/Centos-7.repo |
除系统 yum 缓存并生成新的 yum 缓存
1 | yum clean all # 清除系统所有的yum缓存 |
安装 epel 源
1 | yum list | grep epel-release |
使用阿里开源镜像提供的 epel 源
1 | wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo |
在公司服务器上安装 Jenkins 安装过程及碰到的一些问题
安装 java
1 | yum install java-11-openjdk-devel |
安装 Jenkins
1 | sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo |
访问 http://your_ip_or_domain:8080
1 | mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup |
进入 /var/lib/jenkins 目录
修改 hudson.model.UpdateCenter.xml 换源
1 | <?xml version='1.1' encoding='UTF-8'?> |
安装 wget 遇到了个报错
1 | [root@ip-xxxxx centos]# yum install wget |
CentOS Linux 8 在 2022 年 12 月 31 日来到生命周期终点(End of Life,EoL)。即 CentOS Linux 8 操作系统版本结束了生命周期(EOL),Linux 社区已不再维护该操作系统版本。所以原来的 CentOS Linux 8 的 yum 源也都失效了!最终导致此问题的产生。
1 | sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* |
去这找一下对应版本文件
https://docs.conda.io/en/latest/miniconda.html#linux-installers
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -P tools/
bash tools/Miniconda3-latest-Linux-x86_64.sh -b
$HOME/miniconda3/bin/conda init
bash
去这找一下对应版本文件
https://www.python.org/downloads/source/
安装依赖
1 | yum install gcc openssl-devel bzip2-devel libffi-devel -y |
下载并解压文件
1 | curl -O https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz |
如题
Github: https://github.com/Plortinus/element-china-area-data
Demo: https://plortinus.github.io/element-china-area-data/index.html
这个有个问题,就是频繁点击关闭点击关闭会卡死
老项目用的 node-sass 版本比较低,要么降级 node 版本,要么更新依赖,我选择了更新依赖,这是期间碰到的问题及解决方案
目前是直接升级依赖如下
1 | "sass": "^1.52.3", |
或者
1 | "sass": "^1.52.3", |
搜了一下:尝试用 ::v-deep 替换 /deep/ ,成功解决了问题。
某些预处理器(例如 Sass)可能无法>>>正确解析。
直接把 babel-eslint 降级, 写死为 ^8.2.2
更改前: “babel-eslint”: “^10.1.0”,
更改后: “babel-eslint”: “^8.2.2”,
删除 node_modules
yarn install
数据库里的值123
456
789
想搜索的值是:abc123456
然后能匹配到数据库里的 123
或者 456
,你们都是怎么做的?
https://dev.mysql.com/doc/refman/8.0/en/fulltext-natural-language.html
建表
1 | mysql> CREATE TABLE articles ( |
查询
1 | SELECT id, body, MATCH (title,body) |
Sqlite 也有,但是要切片查询。