由于只是开发环境,所以都是选择比较简单的apt-get安装方式
,但中间也遇到一点问题。首先安装nginxnginx的安装和配置其实很简单,nginx本身非常轻量级,直接 sudo apt-get install nginx
就可以了他的配置文件是在/etc/nginx/里面,网站项目路径是在/va...
分类:
Web程序 时间:
2014-05-27 02:28:29
阅读次数:
306
之前买了个便宜的VPS并且在上面搭建了我自己写的博客程序,后来VPS里运行MongoDB经常自己挂掉就索性没理了。直到现在VPS已经过期,服务器被强制关掉了。周末在家索性想着把这个博客程序重新搭建起来。选择Linode还是云主机(阿里云等等)?阿里云貌似有些贵,而且还有一堆备案的流程。Linode最...
分类:
数据库 时间:
2014-05-27 02:25:53
阅读次数:
720
查询:show databases;show status;show tables;desc
table-name;更改root密码:方法一:mysqladmin -uroot -poldpassword password
newpassword方法二:mysql -uroot -puse mysq...
分类:
数据库 时间:
2014-05-24 07:49:23
阅读次数:
332
默认网站根目录为/usr/local/nginx/html,要将它改成/homw/wwwvi
/usr/local/nginx/conf/nginx.conf将其中的 location / { root html; index index.php
index.html i...
分类:
Web程序 时间:
2014-05-24 04:58:02
阅读次数:
229
Nginx支持伪静态(在 nginx.conf 中 修改如下)参考链接location / {
index index.html index.php; if (-d $request_filename){ rewrite ^/(.*)([^/...
分类:
其他好文 时间:
2014-05-24 03:02:12
阅读次数:
266
服务器端:监听器 lsnrctl启动监听 lsnrctl start
[LISTENER]查看监听 lsnrctl status 或者 lsnrctl serviceC:\Documents and
Settings\Administrator>lsnrctl serviceLSNRCTL for ...
分类:
数据库 时间:
2014-05-24 02:26:13
阅读次数:
340
1 @echo off 2 setlocal enabledelayedexpansion 3
git status||goto :eof 4 5 set "msg=quick push. %date% %time%" 6 if #%1==# (set
/p "msg=commit messa...
分类:
其他好文 时间:
2014-05-19 15:14:16
阅读次数:
402
android.permission.EXPAND_STATUS_BAR允许一个程序扩展收缩在状态栏,Android开发网提示应该是一个类似Windows
Mobile中的托盘程序android.permission.FACTORY_TEST作为一个工厂测试程序,运行在root用户android.p...
分类:
移动开发 时间:
2014-05-19 13:25:39
阅读次数:
353
在MySQL的master-slave或dual master的架构中,我们经常使用show
slave status命令来查看复制状态。这里涉及几个重要的日志文件和位置:Master_Log_File,Read_Master_Log_Pos:
记录了IO thread读到的当前master bin...
分类:
其他好文 时间:
2014-05-19 12:57:28
阅读次数:
282
C - The Dole Queue
Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu
Submit Status
Description
The Dole Queue
In a serious attempt to down...
分类:
其他好文 时间:
2014-05-18 03:10:48
阅读次数:
326