- 博客(21)
- 收藏
- 关注
java 命令运行单元测试
java -cp test.jar;junit-4.11.jar junit.textui.TestRunner \ com.MainTest
2013-08-23 22:03:06
1207
原创 最大文件句柄数量
最大文件句柄数量/etc/security/limits.conf#<domain> <type> <item> <value>* hard nofile 102400* soft nofile ...
2013-03-27 13:15:28
197
原创 安装nginx
安装nginx[root@eegooserver3 ~]# vi /etc/yum.repos.d/nginx.repo[nginx]name=nginx repobaseurl=http://nginx.org/packages/centos/6/$basearch/gpgcheck=0enabled=1[root@eegooserver3 ~]# yum insta...
2013-03-27 13:15:20
142
原创 改变远程链接22端口
改变远程链接22端口 [root@eegooserver3 ~]# vi /etc/ssh/sshd_config取消Port前的#注释,并将端口22改成8622 [root@eegooserver3 ~]# service sshd restart
2013-03-24 16:18:00
172
原创 linux 定时任务
定时任务 [root@eegooserver2 ~]# chmod +x /opt/mysqlbackup/mysqlautobackup [root@eegooserver2 ~]# crontab -eno crontab for root - using an empty one0 2 * * * /opt/mysqlbackup/mysqlautobackup~...
2013-03-24 16:17:32
130
原创 Memcached安装
Memcached安装[root@eegooserver3 ~]# yum install libevent memcached libmemcachedlibevent-1.4.13-4.el6.x86_64.rpmlibmemcached-0.31-1.1.el6.x86_64.rpmmemcached-1.4.4-3.el6.x86_64.rpm[root@eegoo...
2013-03-24 16:17:29
107
原创 Tomcat开机启动
Tomcat开机启动[root@eegooserver3 ~]# groupadd tomcat[root@eegooserver3 ~]# useradd -g tomcat tomcat[root@eegooserver3 ~]# cp /opt/tomcatweb.sh /etc/rc.d/init.d/tomcatweb[root@eegooserver3 ...
2013-03-24 16:16:45
100
原创 Linux共享文件夹
Linux共享文件夹 [root@localhost ~]# yum install samba[root@localhost ~]# chkconfig smb on[root@localhost ~]# smbpasswd -a root [root@localhost ~]# service iptables stop vi /etc/selinu...
2013-03-24 16:12:49
109
原创 JDK配置、Tomcat配置
JDK配置Tomcat配置[root@eegooserver3 ~]# cd /opt/[root@eegooserver3 opt]# tar zxf apache-tomcat-6.0.35.tar.gz [root@eegooserver3 opt]# chmod +x jdk-6u33-linux-x64.bin[root@eegooserver3 opt]# ./jdk...
2013-03-23 18:38:28
119
原创 linux 防火墙设置
防火墙设置[root@eegooserver3 mysql]# vi /etc/sysconfig/iptables# FIRewall configuration written by system-config-firewall# Manual customization of this file is not recommended.*filter:INPUT ACCE...
2013-03-23 18:34:45
95
安装mysql压缩包记录
安装mysql记录[root@eegooserver3 ~]# groupadd mysql[root@eegooserver3 ~]# useradd -g mysql mysql[root@eegooserver3 ~]# cd /opt[root@eegooserver3 opt]# tar zxvf mysql-5.1.63-linux-x86_64-glibc23.ta...
2013-03-23 18:32:33
93
原创 linux IP配置
IP配置[root@eegooserver3 ~]# ifconfiglo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING M...
2013-03-23 18:28:24
127
原创 linux eclipse 界面 调整
Fedora 18 (x86_64) 以验证 OKCentOS 6.3 (x86_64)以验证 OK在用户主文件夹下vi ~/.gtkrc-2.0 #gtk-theme-name="Clearlooks" style "eclipse" { font_name="Sans 6" GtkTreeView::vertical-separator=0 G...
2013-03-23 18:16:44
162
原创 linux font
将 C:\Windows\Fonts 复制到 windows-fonts mv /opt/windows-fonts /usr/share/fonts/ chmod -R 775 /usr/share/fonts/windows-fonts
2013-03-21 22:30:26
108
原创 eclipse 插件记录
http://m2eclipse.sonatype.org/update/ http://www.junginger.biz/eclipse/ http://download.eclipse.org/technology/m2e/releases http://download.eclipse.org/egit/updates http://subclipse.tigris.o...
2013-03-21 11:40:12
121
原创 Linux下的压缩解压缩命令详解
Linux下的压缩解压缩命令详解linux zip命令zip -r myfile.zip ./*将当前目录下的所有文件和文件夹全部压缩成myfile.zip文件,-r表示递归压缩子目录下所有文件.2.unzipunzip -o -d /home/sunny myfile.zip把myfile.zip文件解压到 /home/sunny/-o:不提示的情况下覆盖文件;-d:-d /h...
2012-10-17 20:45:16
116
原创 eclipse.ini
-startupplugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519-showsplashorg.eclipse.platf...
2012-03-01 15:18:59
88
maven 安装第三方jar
mvn install:install-file -Dfile=E:/java/allinpay-security.jar -DgroupId=com.allinpay -DartifactId=allinpay-security -Dversion=1.3.1 -Dpackaging=jar -DgeneratePom=true mvn install:install-file ...
2012-02-28 10:34:24
264
原创 Ubuntu 安装 Courier New字体
代码:apt-get install ttf-mscorefonts-installer 它的本质是安装 Courier New字体安装的时候会出现一个协议 按TAB键 ,可以选中<确定>按钮(有些会看不到确定按钮),按Enter 。OK! Courier New是我觉得字母、符号显示效果最好的字体 安装 wine、eclipse 、My Eclipse...
2011-12-10 18:26:45
332
根据子级查询父级
具体数据库根据情况修改树形结构的数据很多地方都用得到,(产品)父子分类、(角色)父子权限、(应用、模块)父子组 MySQLCREATE TABLE filler ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT) ENGINE=Memory;CREATE TABLE hierarchy ( ...
2011-12-08 09:44:37
222
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人