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
CentOS/RHEL 7.x:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm |
CentOS/RHEL 6.x:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm |
CentOS/RHEL 5.x:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm |
Now you can install PHP 5.5’s mod_php SAPI (along with an opcode cache) by doing:
yum install php55w php55w-opcache |
You can alternatively install PHP 5.5’s php-fpm SAPI (along with an opcode cache by doing:
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 php55w-xml
yum install php56w php56w-cli php56w-common php56w-gd php56w-ldap php56w-mbstring php56w-mcrypt php56w-mysql php56w-pdo php56w-xml
php 另外一種方式
Remi官方網站:http://rpms.famillecollet.com/
添加Remi源,不管32位還是64位的系統,運行下面命令:
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Remi源默認是沒有啟用的,我們來啟用Remi源,修改 /etc/yum.repos.d/remi.repo 文件,把文件內的 enabled=0 改為 enabled=1 ,注意:改文件內有2個 enabled=0 我們修改 [remi]下面的,不要修改[remi-test]下面的。
到這里yum源的配置結束,下面安裝軟件就簡單了。安裝時候有詢問y/n的時候都是y
安裝php,php-fpm以及php擴展:
yum install php php-fpm php-bcmatch php-gd php-mbstring php-mcrypt php-mysql php-pdo php-dom
wget https://files.phpmyadmin.net/phpMyAdmin/4.0.10.15/phpMyAdmin-4.0.10.15-english.zip
大盤預測
國富論
posted on 2016-03-23 15:15
華夢行 閱讀(274)
評論(1) 編輯 收藏