This file contains 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 | |
/*在Application/Home/Conf/config.php里面加入如下代码*/ | |
'SESSION_AUTO_START' => true, | |
'SESSION_TABLE'=>'think_session', | |
'SESSION_OPTIONS'=>array( | |
'type'=>'Db', | |
'expire'=>1440 | |
) | |
/*然后在/Thinkphp/Library/Think/目录下面要有Session文件夹(也就是驱动)*/ |
This file contains 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
<IfModule dir_module> | |
DirectoryIndex index.html index.php | |
</IfModule> |
This file contains 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
<Directory "./htdocs/"> | |
Options Indexes FollowSymLinks | |
</Directory> |
This file contains 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
$ sudo vim.tiny /etc/apt/source.list | |
#修改为 | |
deb http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main contrib non-free rpi | |
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main contrib non-free rpi | |
然后 | |
$ sudo apt-get update | |
$ sudo apt-get upgrade |
This file contains 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.在博客根目录下:\blog\themes\landscape\layout\_partial\head.ejs 第31行 的谷歌链接改为 http://fonts.lug.ustc.edu.cn/css?family=Source+Code+Pro | |
2.在博客根目录下:\blog\themes\landscape\layout\_partial\after-footer.ejs 第17行 的链接改为 <script src="http://apps.bdimg.com/libs/jquery/2.0.3/jquery.min.js"></script> | |
然后就 hexo generate 部署即可 |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |