jmx

Submitted by Lizhe on Thu, 05/19/2016 - 15:31

JAVA_OPTS="$JAVA_OPTS "-Dcom.sun.management.jmxremote=true" "-Dcom.sun.management.jmxremote.port=7091" "-Dcom.sun.management.jmxremote.authenticate=false" "-Dcom.sun.management.jmxremote.ssl=false" "-Djava.rmi.server.hostname=169.193.148.71

 

-Djava.rmi.server.hostname=10.10.8.57 -Dcom.sun.management.jmxremote  -Dcom.sun.management.jmxremote.port=8011 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false

Docker network

Submitted by Lizhe on Wed, 05/18/2016 - 15:09

$ docker run -i -t --rm --net=none base /bin/bash

root@63f36fc01b5f:/#

 

# At another shell, learn the container process ID

# and create its namespace entry in /var/run/netns/

# for the "ip netns" command we will be using below

 

$ docker inspect -f '{{.State.Pid}}' 63f36fc01b5f

2778

$ pid=2778

$ sudo mkdir -p /var/run/netns

$ sudo ln -s /proc/$pid/ns/net /var/run/netns/$pid

 

# Check the bridge's IP address and netmask

 

$ ip addr show docker0

21: docker0: ...

tomcat config

Submitted by Lizhe on Tue, 03/29/2016 - 23:01

DataPicker/WEB-INF/classes

<Context path="" reloadable="true" docBase="E:\Study\EclipseWorkSpace\DataPicker" workDir="E:\Study\EclipseWorkSpace\DataPicker\work">

</Context>
 

E:\apache-tomcat-7.0.67\conf\Catalina\localhost\ROOT.xml

 

centos7 + docker 1.8

Submitted by Lizhe on Fri, 12/11/2015 - 12:14

1.创建docker的yum库

[root@localhost~]# cd /etc/yum.repos.d/

[root@localhostyum.repos.d]# vim docker.repo

[dockerrepo]

name=DockerRepository

baseurl=https://yum.dockerproject.org/repo/main/centos/7

enabled=1

gpgcheck=1

gpgkey=https://yum.dockerproject.org/gpg

(2)安装docker

[root@localhost~]# yum install docker-engine

 

(3)关闭centos7下的firewalld服务并安装iptables-ser

 

[root@localhost~]# systemctl disable firewalld

rm'/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'

数据都丢了

Submitted by Lizhe on Thu, 12/10/2015 - 18:46

想给数据盘扩个容,改完分区表以后超级块坏了

数据库没备份,以前的内容都没了....

 

好悲剧啊,索性把系统升级到centos7.1了