我是欧洲人
export BOOTSTRAP_TIMEZONE="UTC +2"
我无法检查,Github 现在有问题。如果那不对,我应该改变什么?
我是欧洲人
export BOOTSTRAP_TIMEZONE="UTC +2"
我无法检查,Github 现在有问题。如果那不对,我应该改变什么?
我可以连接我的 AWS EC2 实例
ssh -i "pizdform.pem" [email protected]
Last login: Tue Feb 21 12:36:50 2023 from ...
我试过 Ansible ping
cat test-project/hosts.ini
[web]
52.206.23.6
ansible -i test-project/hosts.ini web -m ping -u ec2-user
ping 失败
52.206.23.6 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).",
"unreachable": true
}
为什么?
我检查了lshw
sudo lshw -C disk
*-namespace
description: NVMe namespace
physical id: 1
logical name: /dev/nvme0n1
size: 476GiB (512GB)
capabilities: gpt-1.00 partitioned partitioned:gpt
configuration: guid=1365106e-6114-4a62-8424-b8aeb90e20cb logicalsectorsize=512 sectorsize=512
*-disk
description: SCSI Disk
product: DataTraveler 3.0
vendor: Kingston
physical id: 0.0.0
bus info: scsi@2:0.0.0
logical name: /dev/sda
serial: 0
size: 57GiB (61GB)
capabilities: removable
configuration: ansiversion=6 logicalsectorsize=512 sectorsize=512
*-medium
physical id: 0
logical name: /dev/sda
size: 57GiB (61GB)
lsblk 只显示
sda 8:0 1 57.6G 0 disk
我试着挂载
sudo mount /dev/sda /mnt/mydrive
mount: /mnt/mydrive: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error.
如何检查错误的选项或错误的超级块?
sudo file -sk /dev/sda
/dev/sda: data
Disk /dev/sda: 57.64 GiB, 61872793600 bytes, 120845300 sectors
Disk model: DataTraveler 3.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
我ssh
编辑到我的流浪机器。
System load: 0.13 Processes: 169
Usage of /: 6.6% of 61.80GB Users logged in: 0
Memory usage: 76% IP address for eth0: 10.0.2.11
Swap usage: 16% IP address for eth1: 192.100.0.12
两个私有IP有什么区别?
我有两个 SSD,第一个快满了。这是 lsblk 输出
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 4,2M 1 loop /snap/gnome-calculator/501
loop1 7:1 0 156M 1 loop /snap/gnome-3-28-1804/91
loop2 7:2 0 160,8M 1 loop /snap/midori/550
loop3 7:3 0 42,8M 1 loop /snap/gtk-common-themes/1313
loop4 7:4 0 17,9M 1 loop /snap/pdftk/9
loop5 7:5 0 160,7M 1 loop /snap/midori/451
loop6 7:6 0 140,7M 1 loop /snap/gnome-3-26-1604/92
loop7 7:7 0 89M 1 loop /snap/core/7713
loop8 7:8 0 54,5M 1 loop /snap/core18/1223
loop9 7:9 0 3,7M 1 loop /snap/gnome-system-monitor/100
loop10 7:10 0 144,6M 1 loop /snap/postman/96
loop11 7:11 0 44,2M 1 loop /snap/gtk-common-themes/1353
loop12 7:12 0 54,5M 1 loop /snap/core18/1192
loop13 7:13 0 89,1M 1 loop /snap/core/7917
loop14 7:14 0 132,4M 1 loop /snap/postman/93
loop15 7:15 0 615,6M 1 loop /snap/intellij-idea-community/177
loop16 7:16 0 956K 1 loop /snap/gnome-logs/73
loop17 7:17 0 4,2M 1 loop /snap/gnome-calculator/544
loop18 7:18 0 14,8M 1 loop /snap/gnome-characters/359
loop19 7:19 0 320,3M 1 loop /snap/datagrip/61
loop20 7:20 0 14,8M 1 loop /snap/gnome-characters/317
loop21 7:21 0 956K 1 loop /snap/gnome-logs/81
loop22 7:22 0 3,7M 1 loop /snap/gnome-system-monitor/107
loop23 7:23 0 618M 1 loop /snap/intellij-idea-community/185
loop24 7:24 0 140,7M 1 loop /snap/gnome-3-26-1604/97
loop25 7:25 0 149,9M 1 loop /snap/gnome-3-28-1804/71
loop26 7:26 0 319,5M 1 loop /snap/datagrip/64
sda 8:0 0 465,8G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
└─sda2 8:2 0 465,3G 0 part /
sdb 8:16 0 931,5G 0 disk
├─volgroup-projects 253:0 0 10G 0 lvm /mnt/projects
├─volgroup-db 253:1 0 10G 0 lvm /mnt/db
└─volgroup-workspace 253:2 0 911,5G 0 lvm /mnt/workspace
sdc 8:32 0 111,8G 0 disk
└─sdc1 8:33 0 111,8G 0 part
sr0 11:0 1 1024M 0 rom
如何调整存储池的大小?我不想重新格式化我的磁盘,但我没有足够的经验。我在 Ubuntu 18.04 上。我应该一步一步做什么?
vgs
VG #PV #LV #SN Attr VSize VFree
volgroup 1 3 0 wz--n- 931,51g 0
和 vgdisplay
--- Volume group ---
VG Name volgroup
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 931,51 GiB
PE Size 4,00 MiB
Total PE 238467
Alloc PE / Size 238467 / 931,51 GiB
Free PE / Size 0 / 0
VG UUID gJe4Qy-Qu8n-dVmd-KDDH-YgHd-c9O2-Wg6vQM
lvdisplay
--- Logical volume ---
LV Path /dev/volgroup/projects
LV Name projects
VG Name volgroup
LV UUID JyAbOT-pN1w-zWwM-aPsO-UPpM-QqTC-0pOzMZ
LV Write Access read/write
LV Creation host, time miki, 2019-05-27 13:55:15 +0200
LV Status available
# open 1
LV Size 10,00 GiB
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Path /dev/volgroup/db
LV Name db
VG Name volgroup
LV UUID SuWPuB-QoTQ-HklW-N9qT-t0zf-AhcX-0YBAFK
LV Write Access read/write
LV Creation host, time miki, 2019-05-27 13:55:36 +0200
LV Status available
# open 1
LV Size 10,00 GiB
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Path /dev/volgroup/workspace
LV Name workspace
VG Name volgroup
LV UUID GwJL1X-6Thi-I8xj-w1iK-mwjS-DJC1-BeSgOh
LV Write Access read/write
LV Creation host, time miki, 2019-05-27 13:56:25 +0200
LV Status available
# open 1
LV Size 911,51 GiB
Current LE 233347
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
df 输出
df -h
Filesystem Size Used Avail Use% Mounted on
udev 7,8G 0 7,8G 0% /dev
tmpfs 1,6G 2,3M 1,6G 1% /run
/dev/sda2 457G 424G 9,8G 98% /
tmpfs 7,8G 387M 7,5G 5% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 7,8G 0 7,8G 0% /sys/fs/cgroup
/dev/loop1 55M 55M 0 100% /snap/core18/1265
/dev/loop0 133M 133M 0 100% /snap/postman/93
/dev/loop7 18M 18M 0 100% /snap/pdftk/9
/dev/loop4 141M 141M 0 100% /snap/gnome-3-26-1604/97
/dev/loop2 161M 161M 0 100% /snap/midori/550
/dev/loop3 90M 90M 0 100% /snap/core/7917
/dev/loop8 1,0M 1,0M 0 100% /snap/gnome-logs/81
/dev/loop5 145M 145M 0 100% /snap/postman/96
/dev/loop6 321M 321M 0 100% /snap/datagrip/61
/dev/loop9 618M 618M 0 100% /snap/intellij-idea-community/185
/dev/loop10 43M 43M 0 100% /snap/gtk-common-themes/1313
/dev/loop11 320M 320M 0 100% /snap/datagrip/64
/dev/loop13 157M 157M 0 100% /snap/gnome-3-28-1804/91
/dev/loop14 4,3M 4,3M 0 100% /snap/gnome-calculator/544
/dev/loop15 161M 161M 0 100% /snap/midori/451
/dev/loop12 1,0M 1,0M 0 100% /snap/gnome-logs/73
/dev/loop16 45M 45M 0 100% /snap/gtk-common-themes/1353
/dev/loop17 15M 15M 0 100% /snap/gnome-characters/317
/dev/loop18 90M 90M 0 100% /snap/core/8039
/dev/loop19 4,3M 4,3M 0 100% /snap/gnome-calculator/501
/dev/loop20 141M 141M 0 100% /snap/gnome-3-26-1604/92
/dev/loop21 3,8M 3,8M 0 100% /snap/gnome-system-monitor/107
/dev/loop22 150M 150M 0 100% /snap/gnome-3-28-1804/71
/dev/loop23 616M 616M 0 100% /snap/intellij-idea-community/177
/dev/loop24 3,8M 3,8M 0 100% /snap/gnome-system-monitor/100
/dev/loop25 15M 15M 0 100% /snap/gnome-characters/359
/dev/loop26 55M 55M 0 100% /snap/core18/1223
/dev/sda1 511M 6,1M 505M 2% /boot/efi
/dev/mapper/volgroup-projects 9,8G 37M 9,3G 1% /mnt/projects
/dev/mapper/volgroup-db 9,8G 37M 9,3G 1% /mnt/db
/dev/mapper/volgroup-workspace 897G 77M 851G 1% /mnt/workspace
tmpfs 1,6G 16K 1,6G 1% /run/user/121
tmpfs 1,6G 40K 1,6G 1% /run/user/1000
我在我的 Hortonworks HDP 上安装了 MySQL 和 MySQL 社区服务器。我开始服务并尝试更改密码
/usr/bin/mysql_secure_installation
Securing the MySQL server deployment.
Connecting to MySQL using a blank password.
The 'validate_password' plugin is installed on the server.
The subsequent steps will run with the existing configuration
of the plugin.
Please set the password for root here.
New password:
Re-enter new password:
Estimated strength of the password: 50
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
... Failed! Error: The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
而且这个过程一次又一次地重复。
skip=grant-tables
我从我的/etc/my.conf
文件中删除
我尝试了 bart 的建议,它首先有效,但后来我遇到了同样的问题。
I logged as a root.
mysql> create database registry;
Query OK, 1 row affected (0.05 sec)
mysql> CREATE USER 'registry'@'%' IDENTIFIED BY 'R12$%34qw';
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
如何解决这个问题?
我想弄清楚如何在 Hortonworks HDP 上安装 g++
[root@sandbox-hdp Lesson-5.2_pipes]# uname -a
Linux sandbox-hdp.hortonworks.com 4.19.5-1.el7.elrepo.x86_64 #1 SMP Tue Nov 27 12:40:57 EST 2018 x86_64 x86_64 x86_64 GNU/Linux
无论如何 yum 不起作用
yum install g++
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: centos.uni-sofia.bg
* epel: ftp.arnes.si
* extras: centos.uni-sofia.bg
* ius: lon.mirror.rackspace.com
* updates: centos.uni-sofia.bg
No package g++ available.
为什么?
我有旧的 120GB SSD
lsscsi -s
[0:0:0:0] disk ATA GOODRAM 10.8 /dev/sda 120GB
[1:0:0:0] disk ATA TOSHIBA DT01ACA1 A750 /dev/sdb 1.00TB
[2:0:0:0] cd/dvd TSSTcorp CDDVDW SH-222AB SB00 /dev/sr0
据我了解,我的主板上有 4 个插槽
lsscsi -H
[0] ahci
[1] ahci
[2] ahci
[3] ahci
我买了 Crucial 英睿达 MX500
如果我将其插入最后一个空闲插槽,它将如何影响我的操作?或者用新的SSD更换旧的SSD可能是更好的选择,在这种情况下我必须再次安装新的Ubuntu?