由于只是开发环境,所以都是选择比较简单的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
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
环境:jenkins+maven+nginx+tomcat
在执行jenkins job发布项目到远程服务器,服务器使用nginx+tomcat。默认使用80端口,通过nginx转发请求。在执行tomcat:redeploy时,出现下面的错误:
[ERROR] Failed toexecute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:red...
分类:
其他好文 时间:
2014-05-18 13:38:52
阅读次数:
510
Singles' Day
Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld
& %llu
Submit Status
Description
Singles' Day(or One's Day), an unofficial holiday in China, is a p...
分类:
其他好文 时间:
2014-05-18 09:29:15
阅读次数:
301
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