Linux 490

Got fatal error 1236 from master when reading data from binary log: 'Client requested master to start replication from impossible position'

mysql replication 에러중 아래와 같이 뜬다면 Got fatal error 1236 from master when reading data from binary log: 'Client requested master to start replication from impossible position' 에러가 뜬다면 master 서버에서 확인후mysql> show master status;+------------------+----------+--------------+------------------+| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |+------------------+----------+--------------+------------..

Linux 2014.02.27

samba log 설정

samba log 세부 설정하는 방법이다. smb.conf 파일을 수정한다.공유하고 있는 폴더가 test 라 가정하고 # vi /etc/samba/smb.conf [test]writeable = yesvalid users = testpath = /data/testvfs objects = full_auditfull_audit:prefix = %u|%I|%m|%Sfull_audit:success = read pread write pwritefull_audit:failure = nonefull_audit:facility = LOCAL7full_audit:priority = ALERT syslog.conf 파일도 수정 # vi /etc/rsyslog.conf# samba loglocal7.* /var/log/s..

Linux 2014.02.20

MYSQLl Replication(리플리케이션) 동기화 방법

MYSQL DB 동기화 방법이다. -- [master] -- - 환경 변수에 추가 -# vi /etc/my.cnf[mysqld]log-bin = mysql-binserver-id = 1 - mysql Replication 계정 생성 -# mysql -u root -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 4Server version: 5.1.71-log Source distribution Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered tr..

Linux 2014.02.17

bash: scp: command not found lost connection

scp 파일 복사를 하려는데 에러가 떴다. # scp id_rsa.pub root@192.168.0.3:/root/.ssh/authorized_keysroot@192.168.0.3's password:bash: scp: command not foundlost connection# 192.168.0.3 client 장비에 openssh-clients 가 설치가 안되서 그렇다. # yum install openssh-clients설치 해주면 # scp id_rsa.pub root@192.168.0.3:/root/.ssh/authorized_keysroot@192.168.0.3's password:id_rsa.pub 100% 392 0.4KB/s 00:00# 정상적으로 복사가 된다.

Linux 2014.02.06

hp b110i raid cenos 5.5 환경에 설치하기

기본적으로 centos 5.5 버전에는 b110i 드라이브가 없다드라이브를 올려주면된다. http://www.mmnt.net/db/0/0/ftp.hp.com/ftp2/pub/softlib2/software1/pubsw-linux/p463360858/v66399 다운받고 usb 에 압축풀어서 넣자 그런다음 부팅커맨드에 linux dd 를 입력하고 엔터를 누르면raid 드라이브를 올릴수 있다. 윈도우 버전https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=18440

Linux 2013.12.18

강제 umount 하기

umount 하려는데 # umount /dataumount: /data: device is busyumount: /data: device is busy 위와 같이 에러가 뜬다면 사용자를 확인한다. # fuser -cu /data/data: 4593c(test) test계정이니 강제 종료해도 될듯하다. # fuser -ck /data위와 같이 명령을 하게 되면 data 폴더를 사용하고 있던 test 계정을 강제로 죽게 한다. # umount /data하면 정상적으로 umount 된다. 이것저것 안된다면#umount -f /data umount2: Device or resource busyumount: /data: device is busy 뜨면서 umount 가 된다. #umount -l /data

Linux 2013.11.22

rpm 설치 파일이 32bit 인지 64bit인지 확인 방법

일반적으로 아래와 같이 출력이 된다. # rpm -qa | grep sshopenssh-clients-4.3p2-41.el5 openssh-askpass-4.3p2-41.el5 openssh-server-4.3p2-41.el5 openssh-4.3p2-41.el5 # rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep sshopenssh-clients-4.3p2-41.el5 (x86_64)openssh-askpass-4.3p2-41.el5 (x86_64)openssh-server-4.3p2-41.el5 (x86_64)openssh-4.3p2-41.el5 (x86_64) 파란 항목을 추가해주면 맨뒤에서 확인 가능하다.

Linux 2013.11.21

리눅스 usb 차단 (2)

http://algo79.tistory.com/entry/Linux-usb-%EC%82%AC%EC%9A%A9-%EC%B0%A8%EB%8B%A8이어 두번째 방법이다. usb 자체 사용 안하게 하는 방법이다.(USB마우스,키보드 사용불가능하다) (centos 기준)# vi /etc/boot/grub/grub.conf# grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this file# NOTICE: You have a /boot partition. This means that# all kernel and initrd paths are relative to /boot/, eg.# ro..

Linux 2013.10.29
728x90
반응형