標籤:11111
[[email protected] ~]# yum -y install mysql-server mysql
..........................
[[email protected] ~]# rpm -q mysql-server (查看是否安裝和版本號碼)
[[email protected] ~]# yum list |grep mysql-server
mysql-server.x86_64 5.1.73-5.el6_6 @abc
[[email protected] ~]# service mysqld start
初始化 MySQL 資料庫: WARNING: The host ‘host.tedu.cn‘ could not be looked up with resolveip.
[[email protected] ~]# service mysqld status
mysqld (pid 21119) 正在運行...
[[email protected] ~]# chkconfig mysqld on
[[email protected] ~]# chkconfig --list mysqld
mysqld 0:關閉1:關閉2:啟用3:啟用4:啟用5:啟用6:關閉
[[email protected] ~]# grep mysql /etc/passwd
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
(自己連:)mysql -hlocalhost -uroot -p (本機登也可 mysql)
wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum install nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum install nginx
nginx
[[email protected] ~]# netstat -anptu |grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 5198/nginx
本文出自 “12336621” 部落格,請務必保留此出處http://12346621.blog.51cto.com/12336621/1917149
裝mysql + nginx