Skip to main content

ΑΒΡΑΞΑΣ 설치

[설치] 데이터베이스 설치(PostgreSql)

데이터베이스 설치(PostgreSql)

    -

    PostgreSql 설치

      • sudo apt install postgresql

      - PostgreSql 외부 접근 허용

        • sudo vi /etc/postgresql/13/main/postgresql.conf
          • listen_addresses = '*'                  # what IP address(es) to listen on;
            #listen_addresses = 'localhost'         # what IP address(es) to listen on;
        • sudo vi /etc/postgresql/13/main/pg_hba.conf
          • # IPv4 local connections:
            #host    all             all             127.0.0.1/32            md5
            host    all             all             0.0.0.0/0            md5
            # IPv6 local connections:
            #host    all             all             ::1/128                 md5
            host    all             all             ::/0                 md5

        - 계정만들기

        sudo -u postgres psql -c "ALTER ROLE postgres WITH password '여기패스워드'" postgres 계정으로 로그인 패스워드는 '여기패스워드'로 정한 패스워드

        - adminer-4.8.1.php 설치

        - Database 생성 

          database만들기.png

          - Table 생성 

            테이블생성.png

            실행 sql 파일 createTable.sql 열어서 창에 위와 같이 붙여서 실행

            [설치] Web Application Server 설치 (Tomcat)

            2.

            - Web Application ServerJava 설치

            (Tomcat)
              sudo apt install default-jdk

              [설치] Application 설치

              3. Application 설치

              [설치] 배치 구성하기 (Youtube, 백업)