본문 바로가기

728x90

리눅스

MySQL에서 원격 접속을 허용하는 방법 MySQL에서 원격 접속을 허용하는 방법 1. MySQL 서버 구성 MySQL 서버가 원격 접속을 수락하도록 구성해야 합니다. 이를 위해 MySQL 설정 파일을 수정해야 합니다. 설정 파일은 일반적으로 "/usr/local/mysql/my.cnf" 또는 "/etc/my.cnf"에 위치합니다. 아래와 같이 설정 파일을 열고 bind-address 옵션을 주석 처리 또는 수정하여 모든 IP 주소에서의 접속을 허용합니다. # 기본적으로 MySQL은 로컬 호스트에서만 접속을 허용하도록 설정되어 있습니다. # 다른 IP에서의 접속을 허용하려면 아래의 옵션을 변경합니다. # bind-address = 127.0.0.1 # 모든 IP 주소에서의 접속을 허용합니다. bind-address = 0.0.0.0 설정 파일을.. 더보기
[리눅스] CentOS 7에서 방화벽(firewalld) 설정하기 CentOS 7에서 방화벽(firewalld) 설정하기 방화벽 실행 여부 확인 firewall-cmd --state $ firewall-cmd --state not running 방화벽 실행 systemctl start firewalld.service 방화벽 실행 여부 확인 firewall-cmd --state $ firewall-cmd --state running FTP 서비스 추가 firewall-cmd --add-service=ftp $ firewall-cmd --add-service=ftp success public에 속한 모든 서비스/포트 목록 출력 firewall-cmd --zone=public --list-all $ firewall-cmd --zone=public --list-all publ.. 더보기
[리눅스] HTTP Status Codes HTTP Status Codes(HTTP 1.1 : RFC 2616) HTTP Status Codes 검색 : https://httpstatuses.com 상태코드는 서버가 요구 메시지를 수신하여 처리한 결과를 알려주는 세 자리의 정수로 된 처리 결과 번호입니다.첫 번째 자리 숫자는 응답의 종류에 대한 분류 기호이며, 나머지 두 자리 숫자는 일련번호입니다. 현재 첫 번째 자리 숫자에 대해 다섯 가지로 분류하여 쓰고 있습니다. •Informatinal 1xx •Success 2xx •Redirection 3xx •Client Error 4xx •Server Error 5xx Informational 1xx 참고 정보로 클라이언트의 요청이 접수되었고 현재 처리하고 있다는 의미입니다.클라이언트에서 첨부문서(a.. 더보기
HP 서버 스토리지 정보 확인(raid) HP 서버 스토리지 정보 확인(raid) Smart Storage Administrator (ssacli) 패키지명 : ssacli-4.21-7.0.x86_64.rpm Array Configuration Utility(acucli) 패키지명 : hpssacli-2.40-13.0.x86_64.rpm 패키지 설치 yum install -y ssacli-4.21-7.0.x86_64.rpm 컨트롤러 명령어 컨트롤러 정보 확인 명령어 컨트롤러의 정보 표시 hpssacli ctrl all show config $ hpssacli ctrl all show config Smart Array P410i in Slot 0 (Embedded) (sn: 5001412324380123E5) Port Name: 1I Port N.. 더보기
[리눅스] swap 메모리 초기화 swap 메모리 초기화 swap 메모리 사용빈도 설정 - vm.swappiness = 60 / 기본값 60 - (사용빈도 낮음: 0%-----------------------|------------100% 사용빈도 높음) sysctl vm.swappiness $ sysctl vm.swappiness vm.swappiness = 60 swap 메모리 사용빈도 변경 작업 vi sysctl.conf vm.swappiness=0 또는 echo 0 > /proc/sys/vm/swappiness swap 메모리 초기화 - swapoff를 하게되면 sawp out -> swap in 되면서 실제 물리 메모리로 이동 swapoff -a swapon -a $ free total used free shared buff/c.. 더보기
[명령어] iconv로 character set encoding 변환하기 iconv로 character set encoding 변환하기 iconv 지원하는 encoding 목록 보기 iconv -l $ iconv -l The following list contains all the coded character sets known. This does not necessarily mean that all combinations of these names can be used for the FROM and TO command line parameters. One coded character set can be listed with several different names (aliases). 437, 500, 500V1, 850, 851, 852, 855, 856, 857, 858.. 더보기
[리눅스] 킥스타트로 설치 자동화하기 킥스타트로 설치 자동화하기 selinux perl -pi -e 's/^SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config reboot reboot Packages Installation yum install -y tftp tftp-server syslinux-tftpboot xinetd dhcp dhcp-devel syslinux yum install -y epel-release yum install -y nginx tftp sed -i '/disable/ s/yes/no/' /etc/xinetd.d/tftp dhcpd cat /usr/share/doc/dhcp*/dhcpd.conf.example > /etc/dhcp/dhcpd.conf cat > /e.. 더보기
[리눅스] CentOS 7 런레벨(runlevel) 변경 CentOS 7 런레벨(runlevel) 변경 1. RunLevel config 파일 (CentOS 7 부터 systemctl 명령을 통해 RunLevel를 변경하도록 안내) vim /etc/inittab # inittab is no longer used when using systemd. # # ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. # # Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target # # systemd uses 'targets' instead of runlevels. By default, there are two main targets: # .. 더보기

728x90