`
文章列表
  具体数据库根据情况修改 树形结构的数据很多地方都用得到,(产品)父子分类、(角色)父子权限、(应用、模块)父子组   MySQL CREATE TABLE filler ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT ) ENGINE=Memory; CREATE TABLE hierarchy ( id int(10) unsigned NOT NULL AUTO_INCREMENT, parent int(10) unsigned NOT NULL, P ...
  java -cp test.jar;junit-4.11.jar junit.textui.TestRunner \  com.MainTest      
修改VNC分辨率大小 [root@localhost ~]#vncserver -geometry 1600x900
  最大文件句柄数量 /etc/security/limits.conf #<domain>      <type>  <item>         <value> *                hard    nofile          102400 *                soft    nofile          102400    
安装nginx [root@eegooserver3 ~]# vi /etc/yum.repos.d/nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/6/$basearch/ gpgcheck=0 enabled=1[root@eegooserver3 ~]# yum install nginx [root@eegooserver3 ~]# service nginx start [root@eegooserver3 ~]# netstat –atln
改变远程链接22端口   [root@eegooserver3 ~]# vi /etc/ssh/sshd_config 取消Port前的#注释,并将端口22改成8622     [root@eegooserver3 ~]# service sshd restart
定时任务   [root@eegooserver2 ~]# chmod +x /opt/mysqlbackup/mysqlautobackup [root@eegooserver2 ~]# crontab -e no crontab for root - using an empty one 0 2 * * * /opt/mysqlbackup/mysqlautobackup ~ ~ ~ "/tmp/crontab.UGIdsz" 1L, 43C written crontab: installing new crontab [r ...
Memcached安装 [root@eegooserver3 ~]# yum install libevent memcached libmemcached libevent-1.4.13-4.el6.x86_64.rpm libmemcached-0.31-1.1.el6.x86_64.rpm memcached-1.4.4-3.el6.x86_64.rpm [root@eegooserver3 ~]# memcached –h [root@eegooserver3 ~]# chkconfig memcached on [root@eegooserver3 ~]# chkco ...
    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 ~]# cp /opt/tomcatadmin.sh /etc/rc.d/init.d/tomcatadmin [root@eegooserver3 ~]# chkconfig --add tomca ...
Linux共享文件夹   [root@localhost ~]# yum  install samba [root@localhost ~]# chkconfig smb on [root@localhost ~]# smbpasswd -a root   [root@localhost ~]# service iptables stop     vi /etc/selinux/config   [root@localhost ~]# cat /etc/selinux/config   # This file controls the state of SELinu ...
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-6u33-linux-x64.bin [root@eegooserver3 opt]# vi /etc/profile 在最后加上 # set java environment export ...
防火墙设置 [root@eegooserver3 mysql]# vi /etc/sysconfig/iptables # FIRewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED ...
安装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.tar.gz [root@eegooserver3 opt]# mv /opt/mysql-5.1.63-linux-x86_64-glibc23 /usr/local/mysql [root@eego ...

linux IP配置

IP配置 [root@eegooserver3 ~]# ifconfig lo        Link encap:Local Loopback            inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:16436  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packet ...
Fedora 18 (x86_64) 以验证 OK CentOS 6.3 (x86_64)以验证 OK 在用户主文件夹下 vi ~/.gtkrc-2.0   #gtk-theme-name="Clearlooks"   style "eclipse" {   font_name="Sans 6"   GtkTreeView::vertical-separator=0   GtkTreeView::horizontal-separator=0 } widget_class "GtkTreeView&q ...
Global site tag (gtag.js) - Google Analytics