首页 > 2017年4月

重置MySQL密码

禁用mysql权限表 vi /etc/my.cnf 添加如下一行 skip-grant-tables 重启mysql service mysql restart 进入mysql修改密码 mysql -u root -p mysql> USE mysql; mysql> UPDATE mysql.user SET authentication_string = PASSWORD('MyNewPass') WHERE User = 'root' AND Host = 'localhost'; mysql> FLUSH PRIVILEGES; mysql> quit ...

阿里云 CentOS 7.2 PHP7 LNMP配置

更新系统软件 yum update 安装编译工具 yum install gcc automake autoconf libtool gcc-c++ 安装服务端程序(二选一) (a) nginx 安装nginx源 yum localinstall http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 安装nginx yum install nginx 启动nginx service nginx start 成功显示: Redirecting to /bin...

最新文章

最近回复