목록Linux/CentOS 7 (20)
IT Log
1. Package Update # 현재 설치된 모든 패키지를 업데이트 yum update -y 2. Install Python3 # python3 설치 yum install -y python3 3. Python3 # Python3 설치 확인 (아래와 같이 출력되면 정상) [root@localhost ~] python3 Python 3.6.8 (default, Nov 16 2020, 16:55:22) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux Type "help", "copyright", "credits" or "license" for more information. >>>
Connecting Server 1. Create Server Servers 우클릭 → Create → Server... 를 클릭합니다. 2. Server Name General 탭에서 Server이름을 작성합니다. 3. Connection Config Connection 탭에서 PostgreSQL이 있는 Server에 Host 또는 IP를 입력합니다. PostgreSQL의 기본포트는 5432이고, 개인적으로 다른 포트를 사용하셨다면 수정하시면 됩니다. Username은 기본적으로 PostgreSQL을 설치할 때 기본적으로 postgres가 초기 사용자이고, 포트와 마찬가지로 다른 User를 사용하신다면 수정하시면 됩니다. 그리고 해당 사용자의 비밀번호를 입력합니다. 모든 설정을 완료하면 우측아래 'Sa..
1. RPM Download rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-redhat-repo-1-1.noarch.rpm 2. pgadmin4 Package 설치 yum install -y pgadmin4 3. User 설정 및 Web 설정 이메일과 비밀번호를 설정하고 질문에 y를 입력합니다. 설치가 완료되면 http://127.0.0.1/pgadmin4로 접속할 수 있음을 알려줍니다. /usr/pgadmin4/bin/setup-web.sh 4. Web 접속 http://127.0.0.1/pgadmin4로 접속합니다. 위에서 설정한 Email과 Password를 입력합니다.
CentOS 7 PostgreSQL Install : https://newly0513.tistory.com/154 1. postgresql.conf listen_addresses의 주석을 제거하고, localhost에서 *로 수정합니다. # Configuration File /var/lib/pgsql//datda/postgresql.conf vi /var/lib/pgsql/13/datda/postgresql.conf listen_addresses = '*' 2. pg_hba.conf 모든 IP에서 접속이 가능하도록 아래와 같이 설정합니다. (파일을 확인해보면 맨 아랫줄에 해당내용이 추가됩니다.) echo "host all all 0.0.0.0/0 md5" >> /var/lib/pgsql/13/data/p..
Install MariaDB 1. MariaDB Repository 작성 vi /etc/yum.repos.d/MariaDB.repo [mariadb] name = MariaDB baseurl = https://mirror.yongbok.net/mariadb/yum/10.5/centos7-amd64 gpgkey=https://mirror.yongbok.net/mariadb/yum/RPM-GPG-KEY-MariaDB gpgcheck=1 2. Install MariaDB yum install -y MariaDB-server MariaDB-client Start MariaDB 1. MariaDB 시작 # 시작 systemctl start mariadb # 재부팅 후 자동시작 systemctl enable mar..
MySQL 삭제 1. MySQL 설치 확인 yum list installed | grep mysql 2. MySQL Package 삭제 yum remove -y mysql-community-* 3. MySQL 폴더 삭제 rm -rf /var/lib/mysql 4. RPM 설치 확인 rpm -qa | grep mysql 5. RPM 설치 삭제 'rpm -e mysql' 까지 작성한 후 Tab을 치시면 자동완성 됩니다. RPM 파일도 제거하실 분은 6~7번을 진행해주시고, 아니라면 여기까지 진행하셔도 됩니다. rpm -e mysql80-community-release 6. RPM 파일 확인 find / -name 'mysql*rpm' 7. RPM 파일 제거 rm -rf /root/mysql80-communi..
CentOS 7 MySQL 5.7 Install : https://newly0513.tistory.com/153 Install MySQL 1. Download Repository 2가지 방법 중 선택하여 Download 합니다. # repo wget http://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm # dev wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm 2. Install Repository Repository 설치합니다. rpm -ivh mysql80-community-release-el7-3.noarch.rpm 3. Repository Check D..
사용법 unzip [-Z] [-cflptTuvz[abjnoqsCDKLMUVWX$/:^]] file[.zip] [file(s) ...] [-x xfile(s) ...] [-d exdir] ZIP 구조 예시 zip파일 이름은 archive.zip이라고 가정합니다. First (Folder) One (File) Two (File) Second (Folder) Three (File) Four (File) 사용 예시 현재 위치는 /라고 가정합니다. 현재 폴더에 압축해제 # 예시 : unzip [ZIP파일] unzip archive.zip 또는 unzip archive /First (Folder) /First/One /First/Two /First/Second (Folder) /First/Second/Three /..