zoukankan      html  css  js  c++  java
  • yum,httpd,php环境搭建方法

    #删除已有的yum

        1  rpm -qa|grep yum|xargs rpm -e --nodeps

        2  ls

        3  rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm

        4  rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

        5  rpm -ivh yum-3.2.29-69.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm

        6  cd /etc/yum.repos.d/

        7  ls

        8  mv /root/CentOS-Base.txt ./CentOS-Base.repo

        9  ls

       10  yum clean all

       11  yum makecache

       12  cd

      

       #httpd安装启动

       13  yum -y install httpd

       #加入

       14  chkconfig httpd on

       15  service httpd start

         # 这条命令能卸载干净mysql 然后重装(备用)

       #yum remove mysql mysql-server mysql-libs compat-mysql51

       16  yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql

       17  yum -y install mysql mysql-server mysql-devel

       18  chkconfig mysqld on

       19  service mysqld start

      

       20  /usr/bin/mysqladmin -u root password '123456'

       21  mysql -u root -p

       22   /usr/bin/mysql_secure_installation

       23  mysql -u root -p

       24  netstat -tulpn | grep -i mysql

      

     #增加80端口命令

     #  vim /etc/sysconfig/iptables

     #

      #php流程

     25  yum -y install php php-mysql

       26  yum search php

       27  yum -y install gd php-gd gd-devel php-xml php-common php-mbstring php-ldap php-pear php-xmlrpc php-imap

       28  service httpd restart

       29  vim /var/www/html/index.php

       #这句话加入其中

      

    <?php

                phpinfo();

    ?>

    ~    

       #保存退出

       30  cd /var/www/html/

      

       #这两步根据具体文件进行操作,因为文件名有可能不一样

       31  cp /root/ecmoban_V2.7.3_UTF8_20160825 (2).zip ./

       32  unzip ecmoban_V2.7.3_UTF8_20160825 (2).zip

       #文件名有可能不一样

      

       33  ls

       34  cd ecmoban_V2.7.3_UTF8_20160

       35  ls

       36  cd ecmoban_V2.7.3_UTF8_20160722/

       37  ls

       38  cd ecmoban_V2.7.3_UTF8_20160720/

       39  ls

       40  cd ../

       41  ls

       42  mv ecmoban_V2.7.3_UTF8_20160720/ ../ecmoban27

       43  vim /var/www/html/ecmoban27/upload/includes/cls_mysql.php

       #因为页面报版本提示错误所以要注释掉提示错误的163行的#命令:set nu 显示航行 命令:163 查找163行

          if ($this->platform == 'OTHER' &&

    162                 ($dbhost != '.' && strtolower($dbhost) != 'localhost:3306' && $dbhost != '127.0.0.1:3306') /*||

    163                 (PHP_VERSION >= '5.1' && date_default_timezone_get() == 'UTC')*/)

       #

  • 相关阅读:
    python 抽象
    hive处理日志,自定义inputformat
    random os sys 序列化模块
    collections time模块
    面试题
    正则表达式 和 re模块
    模块的导入 异常处理和软件开发目录规范
    函数的迭代 函数生成器 常用的内置方法
    函数递归 三元表达式 匿名函数 函数内置方法
    闭包函数 装饰器
  • 原文地址:https://www.cnblogs.com/linxinmeng/p/6822449.html
Copyright © 2011-2022 走看看