摘要:
1.编译源码,生成可执行文件; 2.将生成的可执行文件拷贝到 /user/local/bin目录下,若没有x权限请加上; 3.将安装包中的 redis.conf配置文件移到/etc/redis.conf;并设置相应的配置值: daemonize yes //将该属性设为yes,默认非后台启动 pid 阅读全文
摘要:
EjB,只是一个服务端运行组件,公开接口供客户端以C/S方式调用而已。 最直白,最本质的解释,可参见: http://blog.csdn.net/jojo52013145/article/details/5783677 阅读全文
摘要:
使用Mail命令发送邮件: 可如下所示 echo "hello,echo"|mail -s "echo" justin@51cto.com #!/bin/bashHOST=$1;DATABASE=$2;TIMESTAMP=`date +%Y%m%d`;RECEIVER=$3;#execute sql 阅读全文
摘要:
ldap,用于用户登录的权限管理, 可参考:http://www.cnblogs.com/icuit/archive/2010/06/10/1755575.html 阅读全文
摘要:
可参考:http://www.cnblogs.com/atyou/archive/2013/01/07/2850106.html 其中的类图更是精彩,现截至如下: 阅读全文
摘要:
使用tomcat乱码 1.在tomcat的conf/server.xml中的connector,添加URIEncoding=utf-8; <Connector port="8081" protocol="HTTP/1.1" connectionTimeout="200000" URIEncoding 阅读全文
摘要:
Spring Security 加密,默认加salt的输出为:password{salt};然后再对这个加salt后的密码加密存储。 源码如下: 阅读全文
摘要:
使用下面语句查看编码: LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" 可使用locale 命令测试。 最后重启服务器,即可。 参考自:https://confluence.atlassian.com/confkb/filesystem-encoding-is-wri 阅读全文
摘要:
将对80端口的访问都定向到8080端口。 iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 摘自:http://www.iteye.com/problems/91226 如上所述直接用命令配置ipta 阅读全文
摘要:
参见:http://bbs.feng.com/read-htm-tid-107633.html 使用: sudo find *.txt -exec sh -c "iconv -f GB18030 -t UTF8 {} > {}.txt" \; 即可生成转后的文件:*.txt.txt 阅读全文