服务器初始安装

服务器初始安装
 yum -y update
centos6 mysql5.5 yum安装
  
 
默认使用centos yum安装的mysql不是5.5版本的,我们需要增加两个新的repo
rpm -Uvh http://mirror.steadfast.net/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
centos6下php php-fpm的yum安装
查看一下是不是有mysql 5.5了
yum --enablerepo=remi,remi-test list mysql mysql-server
安装mysql5.5
yum --enablerepo=remi,remi-test install mysql mysql-server
启动mysql5.5
/etc/init.d/mysqld start
设置开机启动
chkconfig --levels 345 mysqld on
要启用MySQL 安全设置请输入以下命令
/usr/bin/mysql_secure_installation
  rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
  
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
如果想删除上面安装的包,重新安装
rpm -qa | grep webstatic
rpm -e  上面搜索到的包即可
3.运行yum install
  yum install php55w php55w-cli php55w-common php55w-gd php55w-ldap php55w-mbstring php55w-mcrypt php55w-mysql php55w-pdo
yum install php56w php56w-cli php56w-common php56w-gd php56w-ldap php56w-mbstring php56w-mcrypt php56w-mysql php56w-pdo
 


大盘预测

你可能感兴趣的:(服务器初始安装)