View Mode: Normal | Article List

ofbiz 建立新用户及安全设置

[ 2012-12-16 22:24:58 | Author: zhenhua ]
1 party 中增加一个用户,
2.建立一个安全组并将新用户加入该组
3. 安全组名_VIEW 、安全组名_CREATE、安全组名_UPDATE、安全组名_DELETE

[Hidden] [Hidden]

[ 2012-12-10 10:38:22 | Author: zhenhua ]
You don't have the permission to view this Article.

[Hidden] [Hidden]

[ 2012-12-08 19:20:31 | Author: zhenhua ]
You don't have the permission to view this Article.

妈妈,生日快乐

[ 2012-11-18 12:05:02 | Author: zhenhua ]
时光荏苒,岁月如梭,亲爱的妈妈,您的生日到了,儿子没有陪伴在您身边,在此祝您生日快乐!祝您和爸身体健康,万事如意!

Mac 批量修改文件编码 批量重命名

[ 2012-11-17 16:28:12 | Author: zhenhua ]
修改文件编码:
find *.java -exec sh -c "iconv -f GB18030 -t UTF8 {} > {}.java" \;
find *.java -exec sh -c "iconv -f GB18030 -t UTF-8 {} >utf/{}" \;
find . -type f -name *.java -exec sh -c "iconv -f GB18030 -t UTF8 {} > {}.java" \;

重命名:
for i in *.java;do mv "$i" "${i%.java.java}.java" ;done

删除
rm -rf `find . -type f -name *.bak`

删除目录
rm -rf `find . -type d -name .svn|xargs `

Mac su:Sorry mac下获取root权限

[ 2012-08-29 19:13:48 | Author: zhenhua ]
sudo su

permission denied

chmod +x kill.sh

IIS7 优化-网站请发并发数

[ 2012-08-12 13:12:36 | Author: zhenhua ]
1. 调整IIS 7应用程序池队列长度
由原来的默认1000改为65535。
IIS Manager > ApplicationPools > Advanced Settings
Queue Length : 65535
2. 调整IIS 7的appConcurrentRequestLimit设置
由原来的默认5000改为100000。
直接运行:
C:\Windows\System32\inetsrv\appcmd.exe set config /section:serverRuntime /appConcurrentRequestLimit:100000
在%systemroot%\System32\inetsrv\config\applicationHost.config中可以查看到该设置。
3. 调整machine.config中的processModel>requestQueueLimit的设置
由原来的默认5000改为100000。
<configuration>
<system.web>
<processModel requestQueueLimit="100000"/>
...

Read More...
server.xml

<Server port="9005" shutdown="SHUTDOWN">
<Service name="Catalina">
<Executor name="tomcatThreadPool"
maxThreads="500" minSpareThreads="10" maxIdleTime="600000"/>
<Connector port="80" protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="20000" executor="tomcatThreadPool" acceptorThreadCount="4"
redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps" unpackWARs="false" autoDeploy="false">
...

Read More...