This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| /*清除rom*/ | |
| if(isset($_GET['dir'])){ | |
| $basedir=$_GET['dir']; | |
| }else{ | |
| $basedir = '.'; | |
| } | |
| $auto = 1; | |
| checkdir($basedir); | |
| function checkdir($basedir){ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 只有一篇信息栏目页直接跳转 | |
| <?php | |
| $fr=$Elves->fetch1("select tbname,islast from base_melveclass where classid='$GLOBALS[navclassid]'"); | |
| $num=$Elves->num("select id from {$dbtbpre}elve_$fr[tbname] where classid=$GLOBALS[navclassid]"); | |
| if($num==1&&$fr[islast]){ | |
| $r=$Elves->fetch1("select * from {$dbtbpre}elve_$fr[tbname] where classid=$GLOBALS[navclassid]"); | |
| ?> | |
| <script> | |
| window.location.href= '<?=sys_ReturnBqTitleLink($r)?>'; | |
| </script> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /*BY megic */ | |
| /*normalize.css重置部分 */ | |
| /*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,sel | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //getbyclassname | |
| function getElementsByClassName(node,classname) { | |
| if (node.getElementsByClassName) { // use native implementation if available | |
| return node.getElementsByClassName(classname); | |
| } else { | |
| return (function getElementsByClass(searchClass,node) { | |
| if ( node == null ) | |
| node = document; | |
| var classElements = [], | |
| els = node.getElementsByTagName("*"), | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 先要安装make gcc-c++ openssl-devel 等 | |
| wget http://nodejs.org/dist/v0.8.7/node-v0.8.7.tar.gz(使用官网地址) | |
| tar xvf node-v0.8.7.tar.gz | |
| cd node-v0.8.7 | |
| ./configure | |
| make | |
| make install | |
| npm install forever -g //-g参数,作为系统命令 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 安装CentOS-6.3-x86_64-minimal系统 | |
| 启动网络 | |
| ifconfig eth0 up | |
| dhclient eth0 | |
| //配置启动项 | |
| 1 vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE=eth0 //指出设备名称 | |
| BOOTPROTO=static //启动类型 dhcp为自动获取 自动的修改noboot=yes | |
| BROADCAST=192.168.1.255 //广播地址 | |
| HWADDR=00:OC:29:C6:65:4c //硬件Mac地址 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 服务自启动. | |
| [root@localhost ~]# chkconfig --list 显示开机可以自动启动的服务 | |
| [root@localhost ~]# chkconfig --add *** 添加开机自动启动***服务 | |
| [root@localhost ~]# chkconfig --del *** 删除开机自动启动***服务 | |
| 1.新建用户。 | |
| //登录MYSQL | |
| @>mysql -u root -p | |
| @>密码 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 1. 更新系统内核到最新. | |
| [root@linuxfei ~]#yum -y update | |
| 系统更新后,如果yum安装时提示错误信息,请执行以下命令修复. | |
| [root@linuxfei ~]#rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY* | |
| 2. 安装Apahce, PHP, Mysql, 以及php连接mysql库组件 | |
| [root@linuxfei ~]#yum -y install httpd php mysql mysql-server php-mysql | |
| //安装mysql扩展 | |
| [root@linuxfei ~]#yum -y install mysql-connector-odbc mysql-devel libdbi-dbd-mysql | |
| //安装php的扩展 | |
| [root@linuxfei ~]# yum -y install php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | **************************************** | |
| 结论:不存在与图像或者理论无关的实在概念。 | |
| 依赖模型:一个物理理论和世界图像是一个模型(通常具有数学性质)以及一组将这个模型的元素和观测相连接的规则的思想。 | |
| 牛顿定律是从量子领域涌现出来的适用于日常的有效理论。 | |
| *涌现:分布式系统的一种现象 | |
| 量子物理:不确定性(波动性)//有待解读 | |
| 费恩曼观念 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 安装centos6.2 | |
| ======================== | |
| 网络设置 查看ip:ifconfig | |
| 1 vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE=eth0 //指出设备名称 | |
| BOOTPROTO=static //启动类型 dhcp为自动获取 自动的修改noboot=yes | |
| BROADCAST=192.168.1.255 //广播地址 | |
| HWADDR=00:OC:29:C6:65:4c //硬件Mac地址 | |
| IPADDR=192.168.0.2 //IP地址 | |
| NETMASK=255.255.255.0 //子网掩码 | 
NewerOlder