栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

l一些命令

l一些命令

linux docker

1、当连接一个端口连接不上时记得看一下端口号开放了没
2、当启动rabbitmq的时候出现Is the docker daemon running?表明docker未启动需要先开启docker
开启docker

service docker start

开启rabbitmq

docker restart rabbitmq

开启redis
在redis的安装目录的bin目录下执行/root/myredis/redis.conf这个文件是复制出来的配置文件

./redis-server /root/myredis/redis.conf

关闭所有redis节点

pkill redis

redis配置集群的时候,端口号要放大十倍

防火墙 查看状态
systemctl status firewalld.service
打开防火墙
systemctl start firewalld.service
关闭防火墙
systemctl stop firewalld.service
开启防火墙
systemctl enable firewalld.service
禁用防火墙
systemctl disable firewalld.service
mysql

当执行 mysql -u root -p 命令时 出现
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
可以执行

yum install libncurses*

修改初始密码时遇到
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘(“123456”) where User=‘root’’ at line 1

执行任意一个

alter user 'root'@'localhost' identified by 'new password'; 
ALTER USER USER() IDENTIFIED BY 'new password';
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'new password';
doc

dir:列出当前目录下的文件以及文件夹
md:创建目录
rd:删除目录
cd:进入指定目录
cd . . :退回上一级目录
cd :退回根目录
del:删除文件
exit:退出dos命令

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/744912.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号