centos 操作过程的错误

问题:安装mysql服务过程出现Another app is currently holding the yum lock; waiting for it to exit...

先ctrl c 中断,然后 rm -f /var/run/yum.pid,然后再安装服务 

问题:another app is currently holding the yum lock;waiting for it to exit

解决:rm -f /var/run/yum.pid

mysql

问题:grep 'temporary password' /var/log/mysqld.log 没有弹出密码

是上次清理没有清理干净,所以需要  执行   rm -rf /var/lib/mysql  再  grep 'temporary password' /var/log/mysqld.log  就可以了。

问题:mysql5.7如何修改密码

解决: SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new_password');

(root是用户名,localhost是数据库)

进入sql:mysql -u root -p

在centos系统报错:pymysql.err.OperationalError) (1045, u"Access denied for user 'honeypot'@'lo

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ‘我的密码’;

怎么找mysql的路径

命令: whereis mysql

上github

报错:centos7fatal: unable to access 'https://github.com/p1r06u3/opencanary.git/': TCP connection 

1.先启用EPEL存储库
RHEL/CentOS 7 64位执行以下命令:
执行命令:wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
执行命令:rpm -ivh epel-release-latest-7.noarch.rpm

2.安装git命令  yum install -y git 即可安装

centos 7 git clone 报错:fatal: unable to access ‘https://github.com/ ?

解答:yum update -y nss curl libcurl

python setup.py sdist说Couldn't find index page for 'setuptools_git' (maybe misspelled?)
No local packages or download links found for setuptools-git
解答:$ wget http://peak.telecommunity.com/dist/ez_setup.py

# 安装 $ python ez_setup.py

# 更新,以下两种任选

$ python ez_setup.py –U setuptools

$ pip install -U setuptools


有邮件了用这个看邮件

cat /var/spool/mail/root

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值