via小主機安裝開發環境記錄

硬件平臺爲 via小主機 單核1G內存 120Gide機械硬盤php

安裝系統爲centos6.5 x86系統mysql



系統初始化通過nginx


升級到6.5版本sql

yum upgrade -y數據庫



添加第三方源vim


#添加epel源centos

wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmide

rpm -Uvh epel-release-6-8.noarch.rpmphp-fpm



#添加remi源工具

wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

rpm -Uvh remi-release-6.rpm



#安裝一些工具軟件

yum groupinstall -y "Development tools"

yum install -y wget mlocate vim-enhanced



#安裝數據庫

#創建源

vim /etc/yum.repos.d/Percona.repo

內容是

[percona]

name = CentOS $releasever - Percona

baseurl=http://repo.percona.com/centos/$releasever/os/$basearch/

enabled = 1

gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-percona

gpgcheck = 1



wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-percona http://www.percona.com/downloads/RPM-GPG-KEY-percona



#安裝

yum install Percona-Server-server-56 Percona-Server-client-56 Percona-Server-devel-56 Percona-Server-shared-56



#安裝php

yum install -y php php-mysqlnd php-gd php-apc

yum install -y php-fpm


#安裝nginx

yum install -y nginx

相關文章
相關標籤/搜索