본문 바로가기

develop

Activemq jconsole로 jmx mbeans 컨트롤 jmx로 원격 접속하여 jconsole 컨트롤하기 1. jconsole실행.jdk설치 폴더 안에 bin 폴더에 가보면 jconsole이 있다. 실행하라 ~ 2. remote process가 있고 거기에 아래 주소를 적는다.xxx는 누가봐도 아이피겠지 .. service:jmx:rmi:///jndi/rmi://xxx.xxx.xxx.xx:1099/jmxrmi 이걸로 로그인하면 되네? 일전에 시도했을 땐 안됐었는데.............................. 흐엉 물론 처음 connect 하면 ssl 접속으로 시도하기 때문에 fail어쩌고라고 뜨지만 insecure로 접속하면 볼 수 있습니다. 3. 내 원래 목표였던 접속 클라이언트 접속 끊기는 이렇게 하면 된다. 첫 접속화면에서 보면 상단 메뉴탭바에.. 더보기
rdate 시간 동기화 rdate -s time.bora.netcmos시간을 rdate타임으로 동기화 하려면rdate -s time.bora.net&&clock -w 더보기
vncserver setup centos 환경에서 vncserver yum install tigervnc-server 다운 받고 vim /etc/sysconfig/vncserver 열어서 아래와 같이 수정 VNCSERVERS="1:root"VNCSERVERARGS[1]="-geometry 1280x720" 서비스 시작 service vncserver start ps : refused 비스무리한거 나오면 방화벽 가능성 있음 심플하게 방화벽 off ->> service iptables stop 더보기
centos 텍스트 모드 윈도우 모드 /sbin/init 5 ->> window mode/sbin/init 3 ->> text mode 더보기
SCP 사용법 scp /Users/macbook/Desktop/file.ts root@xxx.xx.xx.xx:/usr/local/ scp root@xxx.xxx.xx.xx:/usr/local/test.ts /User/macbook/Desktop/ 더보기
시스템 사양 체크 centos 6.5 기준.. cpu : cat /proc/cpuinfomemory : cat /proc/meminfohdd : df -h 더보기
mysql 제약조건 확인하기 Use the information_schema.table_constraints table to get the names of the constraints defined on each table:select * from information_schema.table_constraints where constraint_schema = 'YOUR_DB'Use the information_schema.key_column_usage table to get the fields in each one of those constraints:select * from information_schema.key_column_usage where constraint_schema = 'YOUR_DB'If instead you ar.. 더보기
Oracle등의 check 제약조건 mysql에서 쓰기 mysql에서는 check 제약조건이 있지만 무시해버린다. 고로 trigger를 이용해서 비슷하게 만들 수 있다. mysql> drop table mytable; Query OK, 0 rows affected (0.03 sec) mysql> create table mytable ( -> id smallint unsigned AUTO_INCREMENT, -> age tinyint not null, -> primary key(id) -> ); Query OK, 0 rows affected (0.06 sec) mysql> DELIMITER $$ mysql> CREATE TRIGGER checkage_bi BEFORE INSERT ON mytable FOR EACH ROW -> BEGIN -> DECLARE d.. 더보기