码迷,mamicode.com
首页 > 数据库 > 详细

CentOS 7 AMD64安装nginx和mysql

时间:2016-01-20 20:46:26      阅读:272      评论:0      收藏:0      [点我收藏+]

标签:

NGINX:
rpm -ivh http://nginx.org/packages/centos/7/x86_64/RPMS/nginx-1.8.0-1.el7.ngx.x86_64.rpm
查看:
yum info nginx
 
安装:
yum install nginx
service nginx start
 
MySQL:
CentOS 7的yum源中貌似没有正常安装mysql时的mysql-sever文件,需要去官网上下载
# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
# rpm -ivh mysql-community-release-el7-5.noarch.rpm
# yum install mysql-community-server
成功安装之后重启mysql服务
# service mysqld restart
初次安装mysql是root账户是没有密码的,设置密码的方法
# mysql -uroot
mysql> set password for ‘root’@‘localhost’ = password(‘mypasswd‘);
mysql> exit

CentOS 7 AMD64安装nginx和mysql

标签:

原文地址:http://www.cnblogs.com/ihibin/p/5146252.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!