
服务器
RashaunHan
这个作者很懒,什么都没留下…
展开
-
centos 7 中安装mysql服务的问题
今天在安装mysql的时候不论是通过yum install mysql或者是通过 mysql-5.6.26-1.linux_glibc2.5.x86_64.rpm-bundle 这个压缩包tar -xvf mysql-5.6.26-1.linux_glibc2.5.x86_64.rpm-bundle.tartar -zxvf mysql-5.6.26-1.linux_glib...原创 2018-09-15 18:34:49 · 155 阅读 · 0 评论 -
centos7 设置外部访问
通过grant all privileges on *.* to 'admin'@'%' identified by 'han12345' with grant option然后flush privileges;创建一个外部用户admin可以访问数据库如果访问不了可以通过以下命令打开3306端口firewall-cmd --add-port=3306/tcp --permane...原创 2018-09-15 18:44:02 · 1693 阅读 · 0 评论 -
SSH免密登陆
创建秘钥ssh-keygen发送秘钥ssh-copy-id 【ip】登陆ssh 【ip】原创 2018-09-18 10:41:39 · 142 阅读 · 0 评论 -
虚拟机的centos复制之后没有eth0的解决方法
在etc/udev/rules.d vi 70-persistent-net.rules这个文件中有多个网卡信息,其中eth0是在之前那台电脑上的信息,而eth1则是在复制过来之后生成的,将eth0删除然后将eth1改成eth0 然后重启虚拟机 最好service network restart就可以了...原创 2018-11-16 15:12:23 · 529 阅读 · 0 评论 -
centos通过yum方式安装http服务并启动
1.安装yum install -y httpd2.查看Apache是否被安装[root@asg11 ~]# find / -name 'httpd'/etc/sysconfig/httpd/etc/httpd/etc/logrotate.d/httpd/etc/rc.d/init.d/httpd/var/run/httpd/var/log/httpd/var/lock/...原创 2018-11-19 10:08:23 · 7620 阅读 · 0 评论 -
秘钥登陆centos6并且修改为账号登陆
1、创建root用户的密码sudo passwd root2、切换到root账号su root3、编辑主机的ssh登录方式,查找PasswordAuthentication no,把no改为yes,即允许账号登陆vi /etc/ssh/sshd_config4、重启sshd服务sudo /sbin/service sshd restart5、切换root账号su root6、给...原创 2018-11-16 23:28:09 · 361 阅读 · 0 评论 -
Hive安装的时候元数据库使用自己安装的mysql时出现SQL Error code: 1045
出现如下错误Access denied for user 'root'@'localhost' (using password: YES)如图通过在mysql中执行如下命令解决GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'han12345' WITH GRANT OPTION;FLUSH PRIVIL...原创 2018-11-19 19:24:16 · 1290 阅读 · 1 评论 -
使用多台ECS搭建zookeeper集群时启动集群每一台都有QuorumPeerMain进程但是无法选举的问题
我在使用3台ECS搭建zookeeper集群的时候成功启动了QuorumPeerMain进程但是服务器之间无法连接报connection refused错误,尝试更改服务器的安全组策略失败。 后发现是因为我的ECS实例是使用“专有网络” + 弹性公网IP地址,但是因为服务器的弹性公网ip是独立于ECS之外的,因此不能直接在ECS实例的程序中绑定自己的公网ip地址,而...原创 2018-11-18 16:24:05 · 1639 阅读 · 0 评论 -
WARNING: POSSIBLE DNS SPOOFING DETECTED
因为是使用的按需付费的实例,需要将之前备份的镜像文件的.ssh/known_hosts中的所有改变过的节点的记录全部删掉。然后重新配置免密登陆原创 2019-01-08 13:57:23 · 654 阅读 · 0 评论