• PHP文件环境搭建—EcShop环境搭建


        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  lsmys
        8  mv /root/CentOS-Base.txt ./CentOS-Base.repo
        9  ls
       10  yum clean all
       11  yum makecache
       12  cd
       13  yum -y install httpd
       14  chkconfig httpd on
       15  service httpd start
       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
       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
       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  lslsl
       36  cd ecmoban_V2.7.3_UTF8_20160722/
       37  ls
       38  cd ecmoban_V2.7.3_UTF8_20160720/ls
       39  ls
       40  cd ../
       41  ls
       42  mv ecmoban_V2.7.3_UTF8_20160720/ ../ecmoban27

    [root@localhost html]# ls
    ecmoban_V2.7.3_UTF8_20160722  ecmoban_V2.7.3_UTF8_20160825.zip  index.php  phpinfo.php
    [root@localhost html]# cd ecmoban_V2.7.3_UTF8_20160
    -bash: cd: ecmoban_V2.7.3_UTF8_20160: No such file or directory
    [root@localhost html]# cd ecmoban_V2.7.3_UTF8_20160722
    [root@localhost ecmoban_V2.7.3_UTF8_20160722]# ls
    ecmoban_V2.7.3_UTF8_20160720
    [root@localhost ecmoban_V2.7.3_UTF8_20160722]# cd ecmoban_V2.7.3_UTF8_20160720
    [root@localhost ecmoban_V2.7.3_UTF8_20160720]# cd ../
    [root@localhost ecmoban_V2.7.3_UTF8_20160722]# ls
    ecmoban_V2.7.3_UTF8_20160720
    [root@localhost ecmoban_V2.7.3_UTF8_20160722]# mv ecmoban_V2.7.3_UTF8_20160720/ ../ecmoban27
    [root@localhost ecmoban_V2.7.3_UTF8_20160722]# cd html/
    -bash: cd: html/: No such file or directory
    [root@localhost ecmoban_V2.7.3_UTF8_20160722]# cd html
    -bash: cd: html: No such file or directory
    [root@localhost ecmoban_V2.7.3_UTF8_20160722]# cd /
    [root@localhost /]# cd www
    -bash: cd: www: No such file or directory
    [root@localhost /]# cd .var/
    [root@localhost var]# cd www
    [root@localhost www]# ls
    cgi-bin  error  html  icons
    [root@localhost www]# cd html
    [root@localhost html]# ls
    ecmoban27  ecmoban_V2.7.3_UTF8_20160722  ecmoban_V2.7.3_UTF8_20160825.zip  index.php  phpinfo.php
    [root@localhost html]# chmod -r 777 *
    chmod: cannot access `777': No such file or directory
    [root@localhost html]# chmod -R 777 *
    [root@localhost html]#
    Connection closed by foreign host.

  • 相关阅读:
    连载日记
    自我介绍
    test0710 二分专题
    test0709 搜索专题
    test0705
    test0704
    [题解] [HNOI2015]落忆枫音
    test0606
    test0523
    备份
  • 原文地址:https://www.cnblogs.com/linxinmeng/p/6822320.html
Copyright © 2020-2023  润新知