본문 바로가기

Study/Linux

(125)
mysqldump 한글이 깨질때 mysqldump --default-character-set=euckr -u 유저 -p 디비명 > 덤프뜰 이름.sql --default-character-set=euck 옵션추가해주면 한글이 안깨지더군요;;
unpacking of archive failed on file /sbin/ 블라블라: cpio: rename Yum Upgrade를 하는데 unpacking of archive failed on file 메세지가 뜨네요ㅕ.. 해결방법을 구굴신께서 말씀하시길 chattr -i /경고문구에 나온 파일명 생각해보니. /sbin/의 경우.. 인터넷 모였더라 Centos 보안글을 보고 다 잠궜던것 같기도 하고!!1 이런저런것도 좋지만 !! 즐거운 하루되세요
Configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information yum -y install libc-client libc-client-devel
리눅스 파일 내용 검색 grep 검색할것 경로 -R ex > grep function /home/host/ -R
mysql 일반 유저 생성, 권한 추가 create database 데이터베이스명; grant all privileges on 데이터베이스명.* to 사용자명@localhost identified by '패스워드'; flush privileges 분명히 중간에 한가지 과정이 있는데 기억이..안나네;;;; 일단 저렇게 하면, mysql -u 사용자명 데이터메이스명 -p 하면 접근됩니다 저는 mysqldump 떠논게 있어서 < 파일명.sql 넣으면 끝
mysql 익명사용자 제한 mysql을 설치했는데, 루트암호를 지정해서 mysql하면 그냥 들어가지더군요 찾아보니 익명사용자때문에 그랬다고 하네요 . 구글신 만세 root]# mysql -u root -p mysql> DELETE FROM mysql.user WHERE user = ''; -> anonymous 접근을 삭제한다. mysql> FLUSH PRIVILEGES;
chown: changing ownership of chown: changing ownership of 'usr/bin/top' 저 같은경우는 이런 메세지였습니다 제가 내린 명령어는 chown root.root -R /usr/bin 이였고 chattr -i /usr/bin/top 하고서 chown root.root -R /usr/bin 하니까 그냥 되네요 -_-아 이것떄문에 시간 꽤나 끌었는데ㅠㅠㅠ man CHATTR(1) CHATTR(1) 이름 chattr - 리눅스 개정판 확장 화일시스템 상의 화일 속성 변경 개요 chattr [ -RV ] [ -v 버전 ] [ 모드 ] 화일들... 설명 chattr 은 개정판 확장 화일시스템의 화일 속성을 변경한다. 심볼릭 모드의 형식은 +-=[Sacdisu] 이다. ‘+’ 연산자는 주어진 속성을 현재 화일의 속성에..
send: command not found / interact: command not found [root@★]# sh ce_sync.sh ce_sync.sh: line 2: spawn: command not found expect: invalid option -- r usage: expect [-div] [-c cmds] [[-f] cmdfile] [args] ce_sync.sh: line 5: send: command not found ce_sync.sh: line 6: interact: command not found ce_sync.sh: line 7: /root: is a directory ce_sync.sh: line 8: /root: is a directory ce_sync.sh: line 9: /root: is a directory 아 이런 어이가.. [root@★]# ./ce_sync..