­
­
3월 2018 - HoguInside & ㅁ ㅇ ㄷ nail

IT. POST LIST

POST ALL LABEL

centos, ubuntu 네트워크 장치명 변경 및 고정

By 때찌때찌맴매 - 3월 26, 2018
** centos, ubuntu 네트워크 장치명 변경 및  고정 * os 자동화 설치를 운영중에 예상치 못한 상황 발생. 똑같은 메인 보드, 똑같은 펌웨어, 똑같은 os이미지,  똑같은 10G 랜카드를 사용했으나 어떤 서버는 장치명이 정상적으로 고정되지만, 어떤 서버는 장치명이 변경 조차 안되고, 디바이스 장치 순서가 무작위로 변경되는 현상이 발생. (특히 pci 장치 우선순위 무시) * 네트워크 장치명 변경. cento7, ubuntu 14.x ~ 16.04 들은 기존에 사용하던...

Continue Reading

  • Share:

PYTHON3 centos에 설치하기

By 때찌때찌맴매 - 3월 21, 2018
** PYTHON3 centos에 설치하기 [root@localhost 03:58:16:/home/python]# yum install -y https://centos7.iuscommunity.org/ius-release.rpm [root@localhost 03:58:16:/home/python]# yum search python37 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: ftp.neowiz.com * epel: ftp.jaist.ac.jp * extras: centos.mirror.cdnetworks.com * ius: mirror.team-cymru.org * updates: centos.mirror.cdnetworks.com Warning: No matches found for: python37 No matches found * python3.7 을 찾아봤는데 없네요... * python3.6은 있어서 서치 후 설치 진행 하였습니다. [root@localhost...

Continue Reading

  • Share:

PYTHON3 SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xc0 in position 7: invalid start byte 한글 인식

By 때찌때찌맴매 - 3월 21, 2018
** PYTHON3 SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xc0 in position 7: invalid start byte  한글 인식 * python2 에서 한글 내용의 파일을 실행시 발행 에러. PYTHON 2.X [ 장애 ] [root@localhost 02:57:26:/home/python]# python2 te.py File "te.py", line 1 SyntaxError: Non-ASCII character '\xed' in file testsetst.py on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details [ 해결 ] # -*-...

Continue Reading

  • Share:

shell script mysql 패스워드 변경

By 때찌때찌맴매 - 3월 13, 2018
shell script  mysql 패스워드 변경 ** mysql 패스워드 변경 스크립트 입니다. ** 계정 및 패스워드를 변수를 사용하여, 필요시 주기적으로 패스워드 변경 진행을 합니다. #! /bin/bash echo " use mysql; update user set password=password('change_password') where user='root'; flush privileges;" | /usr/local/mysql/bin/mysql -pPASSWORD ...

Continue Reading

  • Share:

A start job is running for raise network interfaces (5 mins 1 sec) in ubuntu16.04 부팅 딜레이

By 때찌때찌맴매 - 3월 12, 2018
A start job is running for raise network interfaces (5 mins 1 sec) in ubuntu16.04 부팅 딜레이 * pxe로 서버 자동 설치로 인해 dhcp를 사용하게 되었다. 우분투 dhcp사용 관련으로 dhcp로 ip가 할당 되지 않고, 체크가 넘어가가게 되면 해당 서비스를 5분간 체크 하게 된다. 부팅으로 불편함을 격게 되는데 이때 해당 체크 시간을 줄이도록 한다. * 참고 : https://ubuntuforums.org/showthread.php?t=2323253 # vi /lib/systemd/system/networking.service 21:TimeoutStartSec=10sec (기본으로 5min설정되있었고, 작성자는 10초로...

Continue Reading

  • Share: