分类 默认分类 下的文章

mount: unknown filesystem type 'LVM2_member'

https://www.cnblogs.com/apexchu/p/4245117.html

1、查看物理卷:pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a- 279.22G 32.00M

2、查看卷组:vgs
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 4 0 wz--n- 279.22G 32.00M

3、查看逻辑卷:lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol03
VG Name VolGroup00
LV UUID YhG8Fu-ZGPk-qt8D-AxgC-DzOU-dg1F-z71feI
LV Write Access read/write
LV Status unenable

open 1

LV Size 245.97 GB
Current LE 7871
Segments 1
Allocation inherit
Read ahead sectors auto

  • currently set to 256
    Block device 253:2

4、如未激活,需要激活逻辑卷:vgchange -ay /dev/VolGroup00

LV Status available

5、挂载逻辑卷:mount /dev/VolGroup00/LogVol03 /home/lvm

d、在卷组里创建逻辑卷并格式化、挂载使用;

- 阅读剩余部分 -

Go语言一般指go(又称 Golang够浪)

够浪的下载地址
https://golang.google.cn/
https://golang.google.cn/dl/
https://golang.google.cn/doc/install?download=go1.15.windows-amd64.msi

package main

import "fmt"

func main() {
   fmt.Println("Hello, 大球Cat!")
}

go run cat.go
go build cat.go

wget https://golang.google.cn/dl/go1.15.linux-arm64.tar.gz
tar -C /usr/local -xzf go1.15.linux-arm64.tar.gz
export PATH=$PATH:/usr/local/go/bin

可以交叉编译

set GOOS=linux
set GOARCH=arm64

参考文献:
https://www.runoob.com/go/go-environment.html

公钥、私钥、加密、解密、RSA

密钥还有很多种存储方式,比如java形式的base64,还有c#形式的xml等
私钥也可以用来加密,公钥解密,需要用到BouncyCastle.Crypto.dll这个库

IBufferedCipher c = CipherUtilities.GetCipher("RSA/ECB/PKCS1Padding");
c.Init(false, PublicKeyFactory.CreateKey(Convert.FromBase64String(pubKey)));
byte[] wb = c.DoFinal(buf, 0, l);

公钥解密的栗子,用的是base64格式的密钥

参考文献:
http://www.itkeyword.com/doc/8759566037018943514/c
https://blog.csdn.net/theodore26/article/details/50331049

不睡觉

docker run -ti --name host01 -v /home/user/miku:/miku -p 30122:22 ubuntu

1、安装Java JDK

转外
wget https://mirrors.huaweicloud.com/java/jdk/8u202-b08/jdk-8u202-linux-x64.tar.gz
tar -zxvf jdk-8u202-linux-x64.tar.gz
mv jdk1.8.0_202/ jdk
转内
cp /etc/profile /miku
转外
sudo vi profile
尾部添加
# JDK,TOMCAT,ORACLE
export JAVA_HOME=/miku/jdk
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin
转内
cp /miku/profile /etc/profile
source /etc/profile
java -version

- 阅读剩余部分 -

mysql load data infile 导入 csv 文件

load data infile '/home/user/OK3a/WW.txt' into table dmpa_test fields terminated by ',';

ERROR 1045 (28000): Access denied for user 'pguser'@'%' (using password: YES)
ERROR 1146 (42S02): Table 'QGDB.dmpa_test' doesn't exist
ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
show variables like '%secure%';
sudo mv /home/user/OK3a/WW.txt /var/lib/mysql-files/
load data infile '/var/lib/mysql-files/WW.txt' into table dmpa_test fields terminated by ',';
ERROR 1262 (01000): Row 1 was truncated; it contained more data than there were input columns
load data infile '/var/lib/mysql-files/00.txt' into table dmpa_test fields terminated by ',';

show variables like 'sql_mode';
load data infile '/var/lib/mysql-files/00.txt' into table dmpa_test fields terminated by ',' enclosed by '"';
[Err] 1262 - Row 1 was truncated; it contained more data than there were input columns
load data infile '/var/lib/mysql-files/00.txt' into table dmpa_test fields terminated by ',' optionally enclosed by "'" lines terminated by '\r\n' IGNORE 1 LINES ;
[Err] 1262 - Row 371126 was truncated; it contained more data than there were input columns

参考:
https://www.cnblogs.com/waynechou/p/7794939.html