systemctl status firewalld //查看防火墙状态
systemctl start firewalld //开启防火墙
systemctl stop firewalld //关闭防火墙
Permission denied 问题可以通过 reset 权限 chmod 666 /dev/null 来解决
firewall-cmd --zone=public --add-port=9200/tcp --permanent //开启指定端口
firewall-cmd --reload //重启防火墙
ps -ef | grep elastic //查看es进程
ps -ef|grep kibana //查看kibana进程
systemctl start mysqld.service //启动mysql
systemctl stop mysqld.service //停止mysql
1、使用yum安装mysql后
2、初始密码在/var/log/mysqld.log这个文件里
3、输入命令:grep ‘temporary password’ /var/log/mysqld.log,可以直接获取密码。
systemctl restart mysqld //重启mysql服务
查看mysql日志 cat /var/log/mysqld.log
重启 mysqld restart 服务
修改root用户密码
update mysql.user set authentication_string=password(‘123456’) where user=‘root’;
mysql5.7版本之后都命令
ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘12345’;
MySQL> flush privileges;
MySQL> exit
查看mysql端口:show global variables like ‘port’;
mysql设置允许外部访问:GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ IDENTIFIED BY ‘你的密码’;
quit或者exit退出mysql
比较好用都密码生成地址:https://suijimimashengcheng.51240.com/
chown -R user:user /logstash //给用户文件夹赋权限
修改mysql端口,vim /etc/my.cnf 文件