링크 ux 명령 자주 사용

8772 단어 linux
    

./configure -help|grep mysql





  php

./configure --prefix=/usr/local/fastphp --with-mysql=mysqlnd\

--enable-mysqld\

--with-gd\

--enable-gd-native-ttf\

--enable-gd-jis-conv\

--enable-fpm





      libxml2 





tar -zxvf libxml2xxxx.tar



cd libxml2xxx



./configure 





make && make install





------------------

   gd 



yum install gd





------------------------------



   rpm    



 rpm -ivh libxml2-devel-2.6.26-2.1.2.8.i386.rpm 

   

      rpm-build:

warning: libxml2-devel-2.6.26-2.1.2.8.i386.rpm: Header V3 DSA/SHA1 Signature, key ID 



37017186: NOKEY

error: Failed dependencies:

    libxml2 = 2.6.26 is needed by libxml2-devel-2.6.26-2.1.2.8.i386





  rpm-build:yum -y install rpm-build



















-------------------------------------



vim              



linux   'readonly' option is set (add ! to override)





     :          。





    :wq!









--------------------------





linux vim            G





-------------------------



.zip        





unzip   xxx.zip





    unzip            





yum install unzip 





-----------------------------------------



linux  nginx    ecshop    





(1)    nginx/html         :127.0.0.1/ecshop/index.php



         :not funod  file 

  

       :nginx   nginx.conf location      index.php 

     

         :nginx   nginx.conf location    index.php 



       nginx  ./sbin/nginx -s reload          :127.0.0.1/ecshop/index.php



 (2)         



       :linux     



         :  ecshop  [    ]  chomd o+r     [ cert]  -R



 (3)        mysql   



       : linux localhost        ,   tcp     ,   sockte   。

 

         (1):               loaclhost       IP  127.0.0.1



         (2):  php.ini          php.ini          



     find / -name  php.ini     



     vim php.ini       mysql.default_host [      /socket              ]



     mysql.default_host =/var/lib/mysql/mysql.sock  [ mysql   socket]



 (4)         [arning: date_default_timezone_get(): It is not ...]



       :linux          。       。



         :  php.ini       date.timezone =PRC  [PRC             ]



             



 (5)         



        :ecshop       ,php     ,           。

   

         :



     (1)    ecshop      。  ecshop   includes  vim init.php  :



      error_reporting(0);        0 。@ini_set('display_errors',0);     0 .

      

             :

      if ((DEBUG_MODE & 1) == 1)

     {

        error_reporting(E_ALL);

     }

     else

     {

        error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));

     }





     (2)    vim   ecshop/install/incudes/init.php             



     @ini_set('display_errors', 0);

     error_reporting(0);



     (3)admin                。





                   :127.0.0.1/ecshop    





     

-------------------------------

URL   



vim  nginx.conf



location /ecshop {



   root html;

   rewrite "good-(\d(1,7)).html" echshop/goods.php?id=$1;



}

#      url   ,      {},         “”;   。

    nginx  





---------------------------------------



      







find / -name     





    





rm -rf     





     



------------nginx    +    --------------------





bin/httpd.conf         :8080





----------------------------------



yum  install httpd \

httpd-manual mod_ssl \

mod_perl mod_auth_mysql \

php-mcrypt php-gd php-xml \

php-mbstring php-ldap \

php-pear php-xmlrpc \

mysql-connector-odbc \

mysql-devel libdbi-dbd-mysql





  httpd:/etc/init.d/httpd start



   nginx  ./sbin/nginx -s reload 



--------------------------------/usr/local/nginx/sbin



/usr/local/nginx/sbin







--------------------------



    :netstat -antp





yum     apache,             /etc/httpd/conf/httpd.conf  









proxy_pass 127.0.0.1:8080;

좋은 웹페이지 즐겨찾기