- 浏览: 105194 次
- 性别:
- 来自: 北京
最新评论
-
lian819:
成功了, 顶楼主一个!
play framework 2.0 + eclipse debug -
qlqllu:
tomcat7,role name变成了manager-gui ...
tomcat的manager使用 -
somefuture:
厉害啊,你怎么知道的
play framework 2.0 + eclipse debug -
freecode:
谢谢,按你的配置成功,就少用户配置<role rolen ...
在tomcat的访问日志配置:awstats
文章列表
git 恢复被删除的文件
- 博客分类:
- git
git checkout 85e079c72a357f15b4f76ff07fb72c43291fabb9 images/loading.gif
红色部分为commit id
push new created branch to remote:
git push origin newbranch
delete local branch:
git branch newbranch -d
delete remote branch:
git push origin :newbranch
pull branch from remote:
git pull origin newbranch
此错误一般发生在第二次安装mysql的情况下(原来有mysql,卸载后重装)
解决办法:
1、卸载原来的mysql
2、删除c:\users\all users\mysql目录
3、安装mysql。这次安装应该可以成功。
参考:
http://bugs.mysql.com/bug.php?id=53515
apt-get的更新源
- 博客分类:
- ubuntu
使用apt-get安装软件时,可能发生not found,404错误,修改更新源可能可以解决问题。
1, vi /etc/apt/source.list,把下面内容copy到source.list中
2, apt-get update
deb http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse deb-src http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse deb http://mir ...
增加环境变量:http_proxy=http://xx.com
openfire连接外部数据库
- 博客分类:
- openfire
在conf/openfire.xml中增加:
<connectionProvider>
<className>org.jivesoftware.database.DefaultConnectionProvider</className>
</connectionProvider>
<database>
<defaultProvider>
<driver>com.mysql.jdbc.Driver</driver>
& ...
1. 查看mysql状态:service mysql status (查看所有服务的状态: service --status-all)
2. 启动mysq: service mysql start
3. 关闭mysql: service mysql stop
4. 创建数据库
CREATE DATABASE IF NOT EXISTS my_db default charset utf8 COLLATE utf8_general_ci;
5. 执行sql文件
...
Delete the relevant section from the .gitmodules file.
Delete the relevant section from .git/config.
Run git rm --cached path_to_submodule (no trailing slash).
Delete the relevent folder in .git/modules.
开发openfire插件应注意的问题
- 博客分类:
- openfire
1. openfire的UI分3级:tab, sidebar,item,sidebar实际上是第二层tab。
一般插件都出现在server tab下面,所以,plugin.xml配置中,tab的id一定要是“tab-server”
2. 自定义的servlet需要定义在web-custom.xml中,并且:url-pattern中不能有大写字母!!!!
1, 在apache的配置文件中增加:
AddType plain/text .abc
AddEncoding gzip .abc
其中:.abc为压缩文件的后缀, 压缩文件必须是正确的gzip格式
2,请求:
$.get('abc.abc',function(data){
$('body').text(data);
});
1、分别下载openfire, strophe, apache
2、配置apache为反向代理:
2.1 加载如下的mod:mod_proxy,mod_proxy_http
2.2 配置代理:
ProxyRequests Off
ProxyPass /strophejs/examples/http-bind/ http://localhost:7070/http-bind/
ProxyPassReverse /strophejs/examples/http-bind/ http://localhost:7070/http-bind/
3、在openfire中 ...
git中,查看删除的文件内容
- 博客分类:
- git
1、查看被删除的文件的历史
git log -- src/xxx/filename
这个命令显示此文件的所有修改历史
2、查看特定版本的内容
git show 0f174130aa54300e2d372f41fb179d0a9d49ce7f:src/xxx/filename
这个命令显示指定版本的文件内容,其中红色部分是第一个命令输出结果中的某一个提交id
http://phrogz.net/css/vertical-align/index.html
1. 安装vsftpd
apt-get install vsftpd
2.安装完后,打开 /etc/shells,增加/bin/false(ftp用户的shell)
3. 默认用户名/密码:ftp/ftp
4. 配置:
打开/etc/vsftpd.conf,做如下配置:
local_enable=YES,允许本地用户登录;
anonymous