- 浏览: 95604 次
- 性别:
- 来自: 成都
最新评论
-
wubo2qml:
虽然很乱,写的确实很实用
jvm参数 -
lazythinker:
楼主总结的不错,
jvm参数 -
kco0910:
子网掩码 验证 255.255.255.0不能通过
IP 子网掩码 正则表达式
文章列表
xmanage 远程桌面访问
- 博客分类:
- shell
service rcxdm restart
Xmanager
1. 编辑 '/etc/opt/kde3/share/config/kdm/kdmrc' file in config section '[XDMCP]'
更改"Enable=false" to "Enable=true",将port=177的屏蔽去掉。
2. 编辑 '/etc/sysconfig/displaymanager'
更改'DISPLAYMANAGER_REMOTE_ACCESS="no"' to 'DISPLAYMANAGER_REMOTE_ACCESS= ...
msyql 10061解决办法
- 博客分类:
- mysql
[mysqld]
# The TCP/IP Port the MySQL Server will listen on
port=4444
bind-address = 0.0.0.0
替换JAR包中的文件
- 博客分类:
- shell
scriptHome=`pwd`
legoPlatHome=$scriptHome/LEGO_V100R001
echo $scriptHome > scriptHome
echo $legoPlatHome > legoPlatHome
log=$scriptHome/changelog
debug()
{
echo $1 >> $log
}
showMessage()
{
echo $1
debug $1
}
checkFile()
{
if [ $# != 1 ]
then
debug "p ...
<taskdef name="foreach" classname="net.sf.antcontrib.logic.ForEach" classpath="F:\Program Files\apache-ant-1.7.1\lib\ant-contrib-1.0b3.jar"/>
<foreach list="${moduleList}" param="fileName" delimiter="," target="packageEventJar ...
SAXReader saxReader = new SAXReader();
Document read = saxReader.read(new File("d:\\struts.xml"));
List<Node> elements = read.selectNodes("//struts/include/@file");
for (Node e : elements)
{
System.out.println(e.g ...
HISTFILESIZE=2000
HISTSIZE=2000
HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
export HISTTIMEFORMAT
1. MySQL(http://www.mysql.com) mysql-connector-java-2.0.14-bin.jar ;
Class.forName( "org.gjt.mm.mysql.Driver" );
cn = DriverManager.getConnection( "jdbc:mysql://MyDbComputerNameOrIP:3306/myDatabaseName", sUsr, sPwd );
2. PostgreSQL(http://www.de.postgresql.org) pgjdbc2.jar ...
create procedure pro5()
begin
declare i int default 10004;
while i<20000 do
set i=i+1;
select CONCAT('370',i);
INSERT INTO Alert
(`ENTITY`, `DISCRIMINATOR`, `ID`, `GROUPNAME`, `CATEGORY`, `SEVERITY`, `PREVIOUSSEVERITY`, `CREATETIME`, `MODTIME`, `MMESSAGE`, `SOURCE`, `WHO` ...
keytool -genkey -alias tomcat -keyalg RSA -keystore Tomcat6/certs/legokeystore -dname "CN=$serverip, OU=$serverip, O=$serverip, L=SH, ST=SH, C
=CN" -keypass legopwd -storepass legopwd -validity 32485
xpath dom 解析
- 博客分类:
- java
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
FileInputStream file = new FileInputStream(legoInstalledFile);
Document doc = builder.parse(file);
XPathFactory ...
windows常用命令
- 博客分类:
- windows
1、netstat 本机网络状态统计
netstat -anop tcp
netstat -anop udp
netstat -anop
2、tasklist 进程查看器
tasklist | findstr PID
3、tskill 杀死进程
tskill <pid>|<process name>
4、sc 系统服务管理
sc delete serviceName
debug()
{
debug="true"
if [ $debug = "true" ]
then
echo $1
fi;
}
getYesterday()
{
yesterday=
yesterday=`date -d last-day +"%Y/%m/%d"`
debug $yesterday
}
getToday()
{
today=
today=`date +"%Y/%m/%d"`
debug $to ...
mysql修改用户密码和远程访问
- 博客分类:
- mysql
./mysql -u root -e "update mysql.user set password=password ('CloudStor@123')where User='root';grant all privileges on *.* to 'root'@'%' identified by 'CloudStor@123' with grant option;flush privileges"
mysqld
skip-grant-tables