隨筆-295  評論-26  文章-1  trackbacks-0
           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 華夢行 閱讀(280) 評論(1)  編輯  收藏

          評論:
          # re: 服務器初始安裝 2016-04-12 19:30 | baibaibai
          god...你的博客還在用,還在更...  回復  更多評論
            

          只有注冊用戶登錄后才能發表評論。


          網站導航:
          博客園   IT新聞   Chat2DB   C++博客   博問  
           
          主站蜘蛛池模板: 洱源县| 阜南县| 大厂| 西华县| 桦南县| 庆元县| 东乡族自治县| 正镶白旗| 雷山县| 巴楚县| 偃师市| 盐津县| 南宫市| 荆州市| 余干县| 大悟县| 安阳市| 安陆市| 桐城市| 高淳县| 新竹市| 迭部县| 太康县| 太仓市| 西乌| 彭泽县| 桦甸市| 罗定市| 蒙城县| 美姑县| 清水河县| 梁河县| 灵石县| 顺昌县| 柳州市| 忻城县| 兴安县| 惠东县| 西藏| 新营市| 吉林市|