반응형

CentOS 4

[Linux] sudo 특정 명령어 사용 시 권한 부여

[Linux] sudo 특정 명령어 사용 시 권한 부여 OS 환경 CentOS 7.9 작업 1.sudo 명령어 사용 [postgres@pg-ha1 ~]$ sudo /usr/sbin/ip addr add 192.168.136.189/24 dev ens32:1 [sudo] postgres의 암호: -- sudo 로 root 권한인 ip 추가 시 Password를 물어봄 2.권한부여 [root@pg-ha1 ~]# echo 'postgres ALL=NOPASSWD:/usr/sbin/ip' >> /etc/sudoers [root@pg-ha1 ~]# cat /etc/sudoers ## Allows members of the users group to shutdown this system # %users localh..

OS 2023.12.14

[MariaDB] MariaDB 10.2 에서 MariaDB 10.6으로 바이너리 업그레이드 (tar.gz)

[MariaDB] MariaDB 10.2 에서 MariaDB 10.6으로 바이너리 업그레이드 (tar.gz) OS 환경 CentOS 7 DB 환경 As-Is : MariaDB 10.2.44 To-Be : MariaDB 10.6.8 설치파일 mariadb-10.6.8-linux-systemd-x86_64.tar.gz # 10.6 버전 설치 후 10.2 DB의 data를 가져와서 Upgrade를 진행 패키지 설치 # 데이터 rsync로 넘길 예정 [root@host01 mysql]# yum install -y rsync MariaDB DB 확인(As-Is) test 데이터 확인 MariaDB [testdb]> select * from test; +---------+ | no | +---------+ | 1 ..

MySQL 2022.07.11

[MariaDB] CentOS 7 에 MariaDB 10.2 바이너리 설치 가이드 (tar.gz)

[MariaDB] CentOS 7 에 MariaDB 10.2 바이너리 설치 가이드 (tar.gz) OS 환경 CentOS 7 DB 환경 MariaDB 10.2.44 설치파일 mariadb-10.2.44-linux-systemd-x86_64.tar.gz MariaDB 설치 전 사전 설정 필수 패키지 설치 [root@host01 ~]# yum install -y libaio 유저 생성 [root@host01 ~]# groupadd mysql [root@host01 ~]# useradd -g mysql mysql [root@host01 ~]# passwd mysql mysql 사용자의 비밀 번호 변경 중 새 암호: 잘못된 암호: 암호는 8 개의 문자 보다 짧습니다 새 암호 재입력: passwd: 모든 인증 토..

MySQL 2022.07.08
반응형
맨 위로