随笔分类 - 自用
摘要:点击查看代码 登出 Connection to clone1 closed. [root@master .ssh]# ll 总用量 16 -rw-rw-r--. 1 root root 393 4月 9 09:23 authorized_keys -rw . 1 root root 1679 4月
阅读全文
摘要:主从 点击查看代码 [root@master ~]# cd ~/.ssh [root@master .ssh]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key
阅读全文
摘要:虚拟网络设置子网ip,取消勾选DHCP自动分配。 这次是192.168.10.0。NET网关是192.168.10.2。 配置CentOS配置内容是 BOOTPROTO=static IPADDR=192.168.10.10 NETMASK=255.255.255.0 GAETWAY=192.168
阅读全文
摘要:1.卸载openjdk rpm -qa | grep java | xargs rpm -e --nodeps rpm -qa | grep jdk | xargs rpm -e --nodeps 卸载后查看 rpm -qa | grep java rpm -qa | grep jdk 无回显 2.
阅读全文
摘要:解决方法: 重启Xshell(或Xftp),多次连接
阅读全文
摘要:问题的关键点:物理机ipv4与虚拟机ipv4相同 解决方法: 更改虚拟机静态ipv4,更改映射 点击查看代码 [root@hadoop101 ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens33 IPV6INIT=yes IPV6_AUTOCONF=y
阅读全文
摘要:给虚拟机加装硬盘 //虚拟机➡设置➡硬盘➡添加 [root@localhost ~]# fdisk /dev/sdb //新硬盘分区 欢迎使用 fdisk (util-linux 2.23.2)。 更改将停留在内存中,直到您决定将更改写入磁盘。 使用写入命令前请三思。 Device does not
阅读全文
摘要:CentOS7中安装MySQL8.3.0没有/usr/share/mysql/sql-bench下的Benchmark Suite工具 1.yum安装epel源 yum -y install epel-release 2.安装perl平台 yum -y install perl* 3.获得/usr/
阅读全文
摘要:点击查看代码 [root@localhost centos7]# ln /tmp/mysql.sock >> /var/lib/mysql/mysql.sock // 硬连接 [root@localhost centos7]# pwd /tmp/mysql.sock /var/lib/mysql/m
阅读全文
摘要:点击查看代码 1、下载安装包 [root@localhost ~]# wget http://acme.com/software/http_load/http_load-09Mar2016.tar.gz 2、解压安装包 [root@localhost ~]# tar -zxvf http_load-
阅读全文
摘要:点击查看代码 [root@localhost ~]# yum -y install epel-release [root@localhost ~]# yum -y install sysbench [root@localhost ~]# sysbench --version sysbench 1.0
阅读全文
摘要:find / -name 'my.ncfg' 在根目录下查找名为my.cfg的文件,输出路径
阅读全文
摘要:接安装tpcc_mysql [root@localhost setup]# 1.任意位置创建数据库(不进入数据库) mysqladmin -uroot -p create tpcc 2.导入表结构 mysql -uroot -p tpcc</data/setup/tpcc-mysql/create_
阅读全文
摘要:原文链接: [https://blog.51cto.com/u_16175454/9981004#:~:text=MySQL8设置允许简单密码 1 登录MySQL数据库 首先,使用root用户登录到MySQL数据库。 mysql -u ,5 刷新权限 在修改后,需要刷新权限使更改生效。 ... 6
阅读全文
摘要:接MySQL8安装 第一部 1.安装openssl-devel(否则报错) yum install openssl-devel 2.安装mysql-community-devel-8.3.0-1.el7.x86_64.rpm rpm -ivh mysql-community-devel-8.3.0-
阅读全文
摘要:用户:root和centos7 方法一: 1.root编辑 /etc/sudoers vim /etc/sudoers。 2.搜索whell /wheel。 5.删除“#”并在 “%whell ALL=(ALL) ALL”下一行添加 “centos7 ALL=(ALL) ALL”。 4.强制保存w!
阅读全文

浙公网安备 33010602011771号