0%

备份原始的yum源

1
2
# cd /etc/yum.repos.d
# cp CentOS-Base.repo CentOS-Base.repo.bak

下载对应版本的repo文件

1
# wget -O CentOS-Linux-BaseOS.repo http://mirrors.aliyun.com/repo/Centos-8.repo

清除旧的yum缓存并生成新的yum缓存,这个过程会有点慢

1
2
# yum clean all
# yum makecache

更新,这一步不是必要的

1
# yum update -y

安装最新Git客户端后无法拉去更新任何仓库

  • 报错 no matching host key type found git

解决方法

  • .ssh 新建config文件
    1
    2
    3
    Host *
    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedKeyTypes +ssh-rsa

龙珠TV版全集链接:
https://pan.xunlei.com/s/VM_YsOPv2pQ5n5JlExNtm1uMA1
提取码:f2ng(可在线观看)
龙珠GT全集链接:
https://pan.xunlei.com/s/VM_YsWSe7iE0NKH5Vj5i50NnA1
提取码:czfc
龙珠改全集链接:
https://pan.xunlei.com/s/VM_YsdEzhnLnNPa1qoIPdiXhA1
提取码:dm4t
龙珠Z蓝光全集链接:
https://pan.xunlei.com/s/VM_Yskh3hnLnNPa1qoIPdkDqA1
提取码:3k5x
龙珠剧场版20部全集链接:
https://pan.xunlei.com/s/VM_Yt081YIZeeBj5snaCqxcwA1
提取码:45vb
龙珠改布欧篇全集链接:
https://pan.xunlei.com/s/VM_YtFko7iE0NKH5Vj5i5AIKA1
提取码:z9te
龙珠超日语中字链接:
https://pan.xunlei.com/s/VMT-8s7LevEdvrnzcMMNw4gcA1
提取码:xg7z

C:\Users\zhanghuiqiang\AppData\Roaming\JetBrains\IntelliJIdea2021.2\options\jdk.table.xml

  • ionic+cordova常用命令
    • 添加平台
      ionic cordova run android -l

** 编译
ionic cordova build android -l

grep 'temporary password' /var/log/mysqld.log

设置远程

1
2
3
4
5
6
7
8
9
10
systemctl start mysqld
mysql -u root -p
use mysql;

ALTER USER 'root'@'localhost' IDENTIFIED BY '>2_o&ypFfhen';
update user set host = '%' where user = 'root' and host='localhost';

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '>2_o&ypFfhen';
GRANT ALL ON *.* TO 'root'@'%';
flush privileges;

卸装MySql

1
2
3
rpm -qa|grep mysql  // 查询已安装的包
rpm -e package --nodeps // 卸装包
find / -name mysql // 查找临时文件

记录几个有用的sql

添加唯一约束

1
ALTER TABLE <数据表名> ADD CONSTRAINT <唯一约束名> UNIQUE(<列名>);

删除唯一约束

1
ALTER TABLE <表名> DROP INDEX <唯一约束名>;

设置字段默认值

1
2
ALTER TABLE <数据表名>
CHANGE COLUMN <字段名> <数据类型> DEFAULT <默认值>;

删除字段默认值

1
2
ALTER TABLE <数据表名>
CHANGE COLUMN <字段名> <字段名> <数据类型> DEFAULT NULL;

https://www.jb51.net/article/199565.htm

mkdir -p /data/sonarqube/postgres/postgresql
mkdir -p /data/sonarqube/postgres/data

docker run –name postgres -v dv_pgdata:/data/sonarqube/postgres/data –net sonarqube-tier -e POSTGRES_USER=sonarqube -e POSTGRES_PASSWORD=sonarqube -e POSTGRES_DB=sonarqube -e TZ=Asia/Shanghai –restart always –privileged=true -p 5432:5432 -d –network-alias postgres postgres:latest

https://www.cnblogs.com/shenh/p/13428029.html
docker run -d –name sonarqube -p 9000:9000
–net sonarqube-tier
–privileged=true
–restart always
-v /data/sonarqube/logs:/opt/sonarqube/logs
-v /data/sonarqube/conf:/opt/sonarqube/conf
-v /data/sonarqube/data:/opt/sonarqube/data
-v /data/sonarqube/extensions:/opt/sonarqube/extensions
sonarqube:latest