본문 바로가기

programming/Linux

(10)
CentOS7 설치 후 기본 설정 1. yum update하기 [root@localhost ~]#yum -y update 2. 고정ip 설정하기 [root@localhost ~]#umtui ipv4는 manual ipv6는 ignore disactivate -> activate [root@localhost ~]#sysytemctl restart network 3. 패키지 설치 [root@localhost ~]#yum -y install epel-release rsync wget vim rdate psmisc net-tools lsof 4. Asia/Seoul로 시간대 세팅 [root@localhost ~]#timedatectl set-timezone Asia/Seoul 5. ssh 보안 설정 1) 설치 [root@localhost ~]#..
CentOS7 설치 네트워크 설정 1. 아래 사항 추가 vi /etc/sysconfig/network-scripts/ifcfg-eno1 [root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eno1 ONBOOT=yes NM_CONTROLLED=yes IDADDR=192.168.55. NETMASK=255.255.255.0 GATEWAY=192.168.55.254 DNS1= DNS2= 이렇게 아무리 설정해도 ifconfig -a 로 조회하면 고정ip가 뜨질 않아서 혼자 헤매다가 2.nmtui [root@localhost ~]# nmtui IPv4는 manual로 IPv6는 ignore로 설정하고 그 외 값은 다 넣어줌 그리고 [root@localhost ~]# reboot systemc..
vim 에디터 hantech 오류 colorschema 1. root로 로그인 2. /usr/share/vim/vim74/colors/ hantech.vim 있는지 확인 없다면 3. 카피해 올 서버에서 카피해오기 scp -p root@ip://usr/share/vim/vim74/colors/hantech.vim /usr/share/vim/vim74/colors/ chown bpuc:bpuc hantech.vim
CentOS7에 MariaDB 10.6 설치하기 (1) 2021.08.18 서버 들어올 때 OS 설치는 되어 들어와서 DB 설치만 진행했다. 이전엔 MariaDB 5.5를 설치했다면 이번엔 최신버전 10.6 설치 진행 1. repo에 다운로드 정보 등록 [root@ ~]# vi /etc/yum.repos.d/MariaDB.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.6/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 2. 설치 [root@ ~]# yum install MariaDB-server MariaDB-client 설치 과정에서 나오는 y/n 중에 모두 y 입력 3. 설치 확인 [root@ ~]..
ERROR 1045 (28000): Access denied for user '-root'@'localhost' (using password: YES) 자꾸 비밀번호 틀렸다고 해서 빡치던 와중 이것 저것 해봐도 안되다가 방법을 찾아냄 using password: NO 가 뜨도록 패스워드 입력하지 말고 엔터를 치라는 글을 발견 그대로 실행해봄 [root@localhost init.d]# /usr/bin/mysql -u -root -p Enter password: ERROR 1045 (28000): Access denied for user '-root'@'localhost' (using password: YES) [root@localhost init.d]# /usr/bin/mysql -u -root -p Enter password: ERROR 1045 (28000): Access denied for user '-root'@'localhost' (using ..
MariaDB5.5 설치 과정 (1) root password 설정 DB 설치가 완료되었으면 실행 [root@localhost init.d]# /etc/init.d/mysql start Starting MariaDB SUCCESS! 서비스 확인 [root@localhost init.d]# netstat -an | grep 3306 tcp 0 0 :::3306 :::* LISTEN root 패스워드 설정 [root@localhost init.d]# mysqladmin -u root password New password: Confirm new password: root로 mysql 접속 [root@localhost init.d]# /usr/bin/mysql -u root -p Enter password: Welcome to the MariaDB monitor. Comman..
CentOS6 에서 MariaDB 설치 시 NOKEY, RPM is not installed 오류 [환경] CentOS release 6.10 (Final) [Error Message] warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 1bb943db: NOKEY Public key for MariaDB-client-5.5.68-1.el6.x86_64.rpm is not installed (1) Error Message 1 [root@localhost ~]# yum install MariaDB-server Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile base | 3.7 kB 00:00 extras | 3..
CentOS 6 yum 오류 해결 방법 [Error Message] (1) YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base (2) removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/extras/mirrorlist.txt Error: Cannot find a valid baseurl for..