'전체 글'에 해당되는 글 384건

  1. 2023.07.05 SourceTree
  2. 2023.06.30 Web Achitectures 입문
  3. 2023.06.30 성장하려면
  4. 2023.06.28 [Ubuntu] Apparmor 활성화
  5. 2023.06.28 [Docker] mysql 설치
  6. 2023.06.28 [Docker] docker run vs. docker start
  7. 2023.06.16 [Docker] 기초정리 (2)
  8. 2023.06.16 [Docker] command 입력방법
  9. 2023.06.16 [Ubuntu] SELinux 설치
  10. 2023.06.15 리눅스(Linux), 커널(Kernel), 우분투(Ubuntu)

SourceTree

|

// 아무리 실행을 해도 갑자기 실행이 안되는 경우

→ C:\Users\{사용자}\AppData\Local\Atlassian\SourceTree.exe_Url_a51ylj1g1ua5ipl3iotmf2qfuefm0ha4\3.3.6.3829

해당 폴더에서 Composition.cache 파일을 삭제해준뒤 소스트리를 실행하면 해결됨

 

 

-- 분명! 설치했는데 어디에도 sourceTree.exe 파일이 안보이는 경우
C:\User\유저명\AppData\Local\SourceTree 에 존재할 것임

-- pull 시 conflict 날 경우
충돌나는 소스 복사(백업) -> 소스트리 stage창에서 폐기 -> pull 성공 -> 수동으로 merge(보면서 check?)

 

// 소스트리에서 브랜치 생성하기

1. 다음과 같이 브랜치를 생성

2. 생성된 브랜치를 마우스 우측 클릭 후 [푸쉬하기 - origin] 하면 local에서 생성된 브랜치 변경 내용이 원격에 반영된다.

 

local 브랜치(삭제를 해도 local에서만 삭제된다) - local 상에서만 잘못 merge가 될경우 local 브랜치를 삭제 후 원격에서 땡겨올수 있다.

 

원격 브랜치(remote에 있는 브랜치 이다) - 땡겨올때 원격에서 땡겨와야한다.

 

'DevTools' 카테고리의 다른 글

[VS Code] vs code 에서 git 연동  (0) 2023.08.11
[VS Code] .properties 파일에서 한글 깨지는 경우  (0) 2023.08.01
tomcat 관련  (0) 2023.05.08
VS Code 에서 명령어 실행이 안될때  (0) 2022.05.12
Eslint  (0) 2021.09.28
And

Web Achitectures 입문

|

 

1. DNS(Domain Name Server)

- 도메인 이름(google.com) 에서 IP주소(85.129.83.120)로 키/값 조회를 제공

- 도메인 주소를 IP주소로 변경하는 것이 DNS



2. 로드 밸런서

- 수평적 확장이 가능하도록 만드는 기술

- 백앤드(웹서버, DB, 기타 등등)들을 각각 다른 서버에서 돌림으로서 서로가 최소한으로 결합할 수 있도록 하는 확장을 의미

- 로드 밸런서는 들어오는 요청을 복제/미러링 된 수많은 서버 중의 하나로 연결하고 서버의 응답을 다시 클라이언트로 보낸다. 로드 밸런서는 이들 서부에 과부하가 걸리지 않도록 들어오는 요청을 적절히 분배해주는 일을 한다.



3. 웹 어플리케이션 서버

- 클라이언트에서 들어오는 요청을 핵심 비지니스 로직을 실행하고 그 결과를 HTML에 담아 브라우저로 보낸다.



4. Database

- 대부분의 웹 어플리케이션 서버는 잡 서버의 역할을 하는 데이터베이스 서버와 직접 통신한다. 거기에 더해서 각각의 백엔드 서비스는 애플리케이션의 다른 영역과 분리된 자신만의 데이터베이스를 가지고 있을 수 있다.



5. 캐싱 서비스

- 클라이언트가 요청하는 html, js, css등에 대해 첫 요청 시 파일을 내려받아 특정 위치에 복사본을 저장하고, 이후 동일한 URL의 요청은 다시 내려 받지 않고 내부에 저장한 파일을 사용하여 더 빠르게 서비스 하기 위한 것



6. Job queue & Server

- 많은 웹/애플리케이션은 사용자에 요청에 의해 응답과는 직접적인 관련이 없는 작업을 백그라운드에서 비동기적으로 실행할 필요가 있다.
- 예를 들어, 구글링 시 결과를 얻기 위해 인터넷에서 데이터를 크롤링하고, 인덱싱 할 필요가 있다. 이럴때 비동기적으로 웹을 크롤링 한다.



7. 전체 텍스트 검색 서비스

- 사용자가 입력을 하면 결과를 보여줌



8. 서비스

- 앱이 특정 규모에 도달하면 별도의 애플리케이션으로 분리해서 운영하기 위핸 ‘서비스’가 생기게 된다.



9. 데이터

- 최근 거의 모든 앱은 특정 규모에 도달하면 데이터를 제어, 저장, 번석하기위해 데이터 파이프 라인을 구축한다. 전형적인 파이프라인은 보통 3개의 주요 단계를 가진다.

- firehose는 데이터를 받아드리고 처리할 수 있는 스트리밍 인터페이스를 제공한다. 가공되지 않은 원시의 데이터는 변형되거나 추가 정보와 함께 다른 firehose로 전달이 된다.
- 원시 데이터와 최종 데이터는모두 클라우드 스토리지에 저장이된다.
- 변형/추가된 데이터는 종종 분석을 위해 데이터 웨어하우스(DW)에서 로드 된다.



10. 클라우드 스토리지

- 인터넷만 존재하면 어디서든 어떠한 기계를 통해서든 파일 및 모든 시스템을 저장 할 수 있고 불러와 사용할 수 있다.



11. CDN(Content Delivery Network)

- html, css, js, 이미지와 같이 정적인 데이터를 웹을 통해 원본서버를 이용하는 거솝다 더 빠르게 제공하기 위한 기술

'etc' 카테고리의 다른 글

PoC  (0) 2023.07.31
Copilot  (0) 2023.07.31
성장하려면  (0) 2023.06.30
DNS  (0) 2023.02.27
전보, 복수직급직렬  (0) 2022.12.28
And

성장하려면

|

업무가 지루하다고 생각되면?

→ 일의 난이도를 올리자

 

업무가 불안하다면?

→ 일의 난이도를 낮추자 

 

성장의 원동력은?

피드백

→ 실수하고 고쳐 나갈 수 있는 환경이 필요

→ 새로운 실수가 발생해도 괜찮다는 심리적 안정감이 토대가 되어야함

→ 작게, 일찍, 자주 실패해 보자.

 

1년에 2번 이상 면접을 보자

→ 구직활동을 통해 경쟁력 파악 및 미래를 준비

→ 인맥

→ 자신감

→ 면접관을 면접해보자 ( 제가 겪었던 OO 사례가 있는데, 여기서는 어떤식으로 해결을 하시나요? 라고 물어보면 구체적인 진짜 정보를 줄 것이다)

→ LinkedIn에서 자신의 이력사항 등록 을 꾸준히 관리하자

→ Thanks for reaching out. This isn't something I am interested in now, but let's keep in touch

→ 헤드헌터 몇명과는 친분을 유지해도 좋다. (언젠간 도움을 줄 수 도 있다.)

'etc' 카테고리의 다른 글

Copilot  (0) 2023.07.31
Web Achitectures 입문  (0) 2023.06.30
DNS  (0) 2023.02.27
전보, 복수직급직렬  (0) 2022.12.28
GitHub - Milestone  (0) 2022.12.06
And

[Ubuntu] Apparmor 활성화

|
// 커널 부팅 매개변수 수정
sudo vi /etc/default/grub

// 다음과 같이 수정
GRUB_CMDLINE_LINUX="apparmor=1 security=apparmor"

// grub을 업데이트 후 재부팅
sudo update-grub
sudo reboot

// apparmor 상태 확인
sudo apparmor_status

// 0 profiles founded로 나와서 apparmor-profiles 설치 진행
sudo apt install apparmor-profiles
And

[Docker] mysql 설치

|
// 우분투 서버 업데이트 및 mysql-server 설치
$sudo apt-get update
$sudo apt-get install mysql-server

// mysql 기본 설치
$sudo ufw allow mysql // 외부 접속 기능 설정 (포트 3306 오픈)
$sudo systemctl start mysql // mysql 실행
$sudo systemctl enable mysql // 우분투 서버 재시작시 mysql 자동 재시작

// mysql 서비스 실행 확인
service --status-all

// mysql 서비스 실행
service mysql start

// mysql 접속 (비번은 우분투 비번과 동일)
$sudo /usr/bin/mysql -u root -p

// mysql 버전 확인
show variables like "%version%";

// mysql 비번 변경
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('바꿀비번');
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '바꿀비번';

// 사용자 정보 확인
SELECT User, Host, authentication_string FROM mysql.user;

// test 라는 데이터베이스 만들고 확인
mysql> CREATE DATABASE test;
mysql> SHOW DATABASES;

// tiger 라는 계정 만들기
mysql> CREATE USER 'tiger'@'localhost' IDENTIFIED BY 'mysql비번';
mysql> FLUSH PRIVILEGES;
mysql> SELECT User, Host, authentication_string FROM mysql.user;

// tiger 계정에 test 데이터베이스 권한 부여
mysql> GRANT ALL PRIVILEGES ON test.* FOR'tiger'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> SHOW GRANTS FOR'tiger'@'localhost';
mysql> SELECT User, Host, authentication_string FROM mysql.user;

 

 

// 아래 내용은 selinux가 적용된 상태에서 mysql가 정상적으로 서비스되지 않았던 부분에 대한 기록
// selinux를 비활성화한 후, reboot하면 mysql은 정상적으로 동작함.

service --status-all
->  mysql 실행상태 (-) 로 확인


service mysql start
->  (root계정으로 전환 후) mysql 실행
-> 아래와 같은 에러메세지 출력
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.

systemctl status mysql.service
-> 아래와 같은 상태 확인(원인 확인 불가)
● mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: activating (start) since Wed 2023-06-28 12:51:36 KST; 3s ago
    Process: 3101750 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
   Main PID: 3101758 (mysqld)
     Status: "Server startup in progress"
      Error: 13 (Permission denied)
      Tasks: 5 (limit: 19083)
     Memory: 375.9M
     CGroup: /system.slice/mysql.service
             └─3101758 /usr/sbin/mysqld

systemctl start mysqld
-> 아래와 같은 메세지 출력
Failed to start mysqld.service: Unit mysqld.service not found.

/var/run/mysqld 디렉토리 내에 mysqld.service 파일 부존재

/var/log/mysqld.log 파일 부존재 (mysqlq 에러 로그 확인을 위함)

'IT Infra' 카테고리의 다른 글

멀티 테넌트 (Multi Tenant), 멀티 테넌시(Multi Tenancy)  (0) 2023.08.03
[Ubuntu] Apparmor 활성화  (0) 2023.06.28
[Docker] docker run vs. docker start  (0) 2023.06.28
[Docker] 기초정리 (2)  (0) 2023.06.16
[Docker] command 입력방법  (0) 2023.06.16
And

[Docker] docker run vs. docker start

|
// 새로운 컨테이너를 실행
// (이미지ID를 기준으로 새로운 컨테이너를 만들어서 실행)
docker run {#이미지ID}

// 중지되었던 기존 컨테이너를 재실행
// (컨테이너ID를 기준으로 기존 컨테이너를 실행)
docker start {#컨테이너ID}

'IT Infra' 카테고리의 다른 글

[Ubuntu] Apparmor 활성화  (0) 2023.06.28
[Docker] mysql 설치  (0) 2023.06.28
[Docker] 기초정리 (2)  (0) 2023.06.16
[Docker] command 입력방법  (0) 2023.06.16
[Ubuntu] SELinux 설치  (0) 2023.06.16
And

[Docker] 기초정리 (2)

|

컨테이너

- 하나의 isolate 된 application

- node.js / mysql / 이런식으로 각각 분리되어 있으므로 독립적으로 배포해서 관리 가능

- 컨테이너 이미지는 여러개의 layer로 구성되어서 하나의 application으로 실행될 수 있게함.

- layer는 uuid로 이루어져 있음

컨테이너? 컨테이너 이미지?

- 컨테이너 이미지 : 저장소에 저장되어 있는 개별 image (file)

- 컨테이너 : 컨테이너 이미지를 실행(동작)하는 상태 (process)

 

컨테이너 동작방식

hub.docker.com → 수십만개의 컨테이너가 존재
docker search nginx // nginx가 존재하는지 hub에서 찾아주세요
docker pull nginx:latest // nginx 이미지를 가져옴(다운로드)

// run: 이미지화시킴 (run 대신 create, start 도 있음)
docker run -d --name web -p 80:80 nginx:latest // docker platform(dockerd)에 실행시킴

 

용어정리

- Docker Host: 도커 데몬이 동작되고 있는 시스템

- Docker Daemon: systemctl start docker 으로 실행한 도커

- Docker Client Command: docker

- Docker Hub: 도커닷컴에서 제공해주는 허브

- Container Images: 이미지 레이어 별로 저장

- Container: 하나의 프로세스 상태로 실행되는 것

 


// 도커 시작
systemctl start docker

// configure docker to start on boot with systemd
systemctl enable docker.service
systemctl enable containerd.service

// disable
systemctl disable docker.service
systemctl disable containerd.service

// docker daemon 중지
sudo service docker stop

// docker 데이타 삭제
sudo rm -rf /var/run/docker
sudo rm /var/run/docker.*

// 서비스 재시작
sudo service docker start

// 컨테이너 시작
docker start mycontainer

// 도커 상태확인
docker info

// 도커 서비스 상태 확인
systemctl status docker 

// docker 저장소 구성
root@docker-ubuntu:/var/lib/docker# ls -l
합계 44
drwx--x--x 4 root root 4096  6월 15 15:49 buildkit
drwx--x--- 2 root root 4096  6월 15 15:49 containers
drwx------ 3 root root 4096  6월 15 15:49 image
drwxr-x--- 3 root root 4096  6월 15 15:49 network
drwx--x--- 3 root root 4096  6월 16 15:48 overlay2 // ------> 이미지가 저장되는 위치
drwx------ 4 root root 4096  6월 15 15:49 plugins
drwx------ 2 root root 4096  6월 16 15:48 runtimes
drwx------ 2 root root 4096  6월 15 15:49 swarm
drwx------ 2 root root 4096  6월 16 15:48 tmp
drwx------ 2 root root 4096  6월 15 15:49 trust
drwx-----x 2 root root 4096  6월 16 15:48 volumes

// 이미지 다운로드
docker pull nginx

// 다운로드 받으면 아래와 같이 이미지가 생성됨
guru@docker-ubuntu:~$ docker images
REPOSITORY   TAG       IMAGE ID       CREATED      SIZE
nginx        latest    eb4a57159180   2 days ago   187MB

// 도커 실행
// `web` : name
// `80` : port
// `nginx` : repository name 
docker run --name web -d -p 80:80 nginx

// 현재 동작중인 도커 프로세스 확인
$ docker ps
CONTAINER ID   IMAGE     COMMAND                  CREATED         STATUS         PORTS                               NAMES
3c0b095d7a57   nginx     "/docker-entrypoint.…"   7 minutes ago   Up 7 minutes   0.0.0.0:80->80/tcp, :::80->80/tcp   web

// curl 명령어로 접속 확인
curl localhost:80

// `web` 동작중지
docker stop web

// `web` 컨테이너 삭제
docker rm web

// `nginx` 이미지 삭제
docker rmi nginx

'IT Infra' 카테고리의 다른 글

[Docker] mysql 설치  (0) 2023.06.28
[Docker] docker run vs. docker start  (0) 2023.06.28
[Docker] command 입력방법  (0) 2023.06.16
[Ubuntu] SELinux 설치  (0) 2023.06.16
리눅스(Linux), 커널(Kernel), 우분투(Ubuntu)  (0) 2023.06.15
And

[Docker] command 입력방법

|
See 'docker --help'.

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Options:
      --config string      Location of client config files (default "/home1/ncloud/.docker")
  -c, --context string     Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use")
  -D, --debug              Enable debug mode
  -H, --host list          Daemon socket(s) to connect to
  -l, --log-level string   Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
      --tls                Use TLS; implied by --tlsverify
      --tlscacert string   Trust certs signed only by this CA (default "/home1/ncloud/.docker/ca.pem")
      --tlscert string     Path to TLS certificate file (default "/home1/ncloud/.docker/cert.pem")
      --tlskey string      Path to TLS key file (default "/home1/ncloud/.docker/key.pem")
      --tlsverify          Use TLS and verify the remote
  -v, --version            Print version information and quit

Management Commands:
  app*        Docker App (Docker Inc., v0.9.1-beta3)
  builder     Manage builds
  buildx*     Docker Buildx (Docker Inc., v0.10.5)
  compose*    Docker Compose (Docker Inc., v2.18.1)
  config      Manage Docker configs
  container   Manage containers
  context     Manage contexts
  image       Manage images
  manifest    Manage Docker image manifests and manifest lists
  network     Manage networks
  node        Manage Swarm nodes
  plugin      Manage plugins
  secret      Manage Docker secrets
  service     Manage services
  stack       Manage Docker stacks
  swarm       Manage Swarm
  system      Manage Docker
  trust       Manage trust on Docker images
  volume      Manage volumes

Commands:
  attach      Attach local standard input, output, and error streams to a running container
  build       Build an image from a Dockerfile
  commit      Create a new image from a container's changes
  cp          Copy files/folders between a container and the local filesystem
  create      Create a new container
  diff        Inspect changes to files or directories on a container's filesystem
  events      Get real time events from the server
  exec        Run a command in a running container
  export      Export a container's filesystem as a tar archive
  history     Show the history of an image
  images      List images
  import      Import the contents from a tarball to create a filesystem image
  info        Display system-wide information
  inspect     Return low-level information on Docker objects
  kill        Kill one or more running containers
  load        Load an image from a tar archive or STDIN
  login       Log in to a Docker registry
  logout      Log out from a Docker registry
  logs        Fetch the logs of a container
  pause       Pause all processes within one or more containers
  port        List port mappings or a specific mapping for the container
  ps          List containers
  pull        Pull an image or a repository from a registry
  push        Push an image or a repository to a registry
  rename      Rename a container
  restart     Restart one or more containers
  rm          Remove one or more containers
  rmi         Remove one or more images
  run         Run a command in a new container
  save        Save one or more images to a tar archive (streamed to STDOUT by default)
  search      Search the Docker Hub for images
  start       Start one or more stopped containers
  stats       Display a live stream of container(s) resource usage statistics
  stop        Stop one or more running containers
  tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
  top         Display the running processes of a container
  unpause     Unpause all processes within one or more containers
  update      Update configuration of one or more containers
  version     Show the Docker version information
  wait        Block until one or more containers stop, then print their exit codes

Run 'docker COMMAND --help' for more information on a command.

To get more help with docker, check out our guides at https://docs.docker.com/go/guides/

'IT Infra' 카테고리의 다른 글

[Docker] docker run vs. docker start  (0) 2023.06.28
[Docker] 기초정리 (2)  (0) 2023.06.16
[Ubuntu] SELinux 설치  (0) 2023.06.16
리눅스(Linux), 커널(Kernel), 우분투(Ubuntu)  (0) 2023.06.15
[Docker] 기초 정리  (1) 2023.06.14
And

[Ubuntu] SELinux 설치

|

SELinux 란?

- Security Enhanced Linux

- 과거 linux의 보안을 강화하고 보완한 것
- 커널(Kernel)을 보호하기 위한 '도구'이고 리눅스 커널에 내장된 보안모듈
- 강제적 접근 제어(Mandantory Access Control Mac)을 수행 , 오직 필요한 기능에 대해서 사용권한을 안전하게 부여하는 것이 가능


SELinux 동작모드

- enforcing : 강제
- permissive : 허용
- disabled : 비활성화

setenforce 0 // permissive
setenforce 1 // enforcing
getenforce // SeLinux 설정값을 출력하는 명령어

* disabled는 vi 편집기로 /etc/sysconfig/selinux 파일을 편집으로 설정 가능함.

$ sed 's/SEL.*/SELINUX=disabled

 

* ps명령어 (OPTION : -ef )

- grep 명령 활용하여 ssh 프로세스 출력

ps [option] [ps name/number]

// option
-e // 모든 프로세스를 출력
-f // 풀 포맷으로 출력(UID, PID)
-l // 긴 포맷으로 출력
p, -p // 특정 PID의 프로세스 출력
-u // 특정 사용자의 프로세스 출력

// selinux 보안옵션이 적용되어 있는 지 확인 (프로세스)
docker ps -ef | grep docker | grep selinux-enabled

// selinux 보안옵션이 적용되어 있는지 확인 (명령어)
docker ps --quiet --all | xargs docker inspect --format "{{ .Id }}: SecurityOpt={{ .HostConfig.SecurityOpt }}"

 

 

// pkg 현행화
sudo apt update 

// apparmor 정지 & 비활성화 & 제거
systemctl status apparmor 
sudo systemctl stop apparmor
sudo systemctl disable apparmor

// SELinux 설치
sudo apt install policycoreutils selinux-basics selinux-utils -y

// SELinux enable
sudo selinux-activate

// reboot
sudo reboot

(여기서 재부팅 시 오랜 시간이 소요됨)

// config 파일 접근
cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=permissive <--------------------- permissive를 enforcing 으로 변경해야함 *selinux를 끌 경우 disabled로 저장 후, sudo reboot 하면 됨
# SELINUXTYPE= can take one of these two values:
# default - equivalent to the old strict and targeted policies
# mls     - Multi-Level Security (for military and educational use)
# src     - Custom policy built from source
SELINUXTYPE=default

# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0

// permissive를 enforcing 으로 변경하기 위해선 config 파일이 읽기전용인지라 권한변경을 해야함
// root 계정으로 변경후 권한변경진행
sudo su - root
chmod 755 config

// 편집모드에서 변경해줌
vi config

// sestatus 명령어로 enabled 확인
ncloud@org-insight-cg-dev-ssd-c4-m8:~$ sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             default
Current mode:                   permissive
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Memory protection checking:     requested (insecure)
Max kernel policy version:      31
ncloud@org-insight-cg-dev-ssd-c4-m8:~$ docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
ncloud@org-insight-cg-dev-ssd-c4-m8:~$ docker ps -a
CONTAINER ID   IMAGE             COMMAND                  CREATED        STATUS                   PORTS     NAMES
d9e7fb156b01   redis:7.0.7       "docker-entrypoint.s…"   7 weeks ago    Exited (0) 2 hours ago             cg-dev-redis
c35ea4c77285   mariadb:10.3.31   "docker-entrypoint.s…"   7 months ago   Exited (0) 2 hours ago             mariadb-demo
ncloud@org-insight-cg-dev-ssd-c4-m8:~$ docker ^C
ncloud@org-insight-cg-dev-ssd-c4-m8:~$ docker start d9e7fb156b01
d9e7fb156b01
ncloud@org-insight-cg-dev-ssd-c4-m8:~$ docker ps -a
CONTAINER ID   IMAGE             COMMAND                  CREATED        STATUS                   PORTS                    NAMES
d9e7fb156b01   redis:7.0.7       "docker-entrypoint.s…"   7 weeks ago    Up 3 seconds             0.0.0.0:6379->6379/tcp   cg-dev-redis
c35ea4c77285   mariadb:10.3.31   "docker-entrypoint.s…"   7 months ago   Exited (0) 2 hours ago                            mariadb-demo
ncloud@org-insight-cg-dev-ssd-c4-m8:~$ sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             default
Current mode:                   permissive
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Memory protection checking:     requested (insecure)
Max kernel policy version:      31
ncloud@org-insight-cg-dev-ssd-c4-m8:~$

 

참고사이트

https://www.linode.com/docs/guides/how-to-install-selinux-on-ubuntu-22-04/

https://linuxconfig.org/how-to-disable-enable-selinux-on-ubuntu-20-04-focal-fossa-linux

'IT Infra' 카테고리의 다른 글

[Docker] 기초정리 (2)  (0) 2023.06.16
[Docker] command 입력방법  (0) 2023.06.16
리눅스(Linux), 커널(Kernel), 우분투(Ubuntu)  (0) 2023.06.15
[Docker] 기초 정리  (1) 2023.06.14
PUTTY  (0) 2023.03.31
And

리눅스(Linux), 커널(Kernel), 우분투(Ubuntu)

|

리눅스

- 커스터마이즈된 OS를 만들 수 있는 커널

- 리눅스 커널을 기반으로 한다. (리눅스 커널은 오픈소스인데 커스텀 OS를 만들수 있고 이러한 배포판 중 하나가 ubuntu 이다.)

- 리눅스 아키텍처는 커널, 시스템 라이브러리, 시스템 도구, 개발 도구 및 최종 사용자 도구와 같은 구성 요소로 구성됨.

- 커널은 운영 체제의 핵심

- 장치 메모리를 관리하고 프로세스를 관리

- 리눅스는 보편적으로 개인용 컴퓨터, 데스크탑, 게임 개발, 임베디드 시스템, 스마트폰, 태블릿 등에서 사용된다.

- 리눅스 커널을 기반으로 운영체제가 만들어짐. 그것이 배포판

 

커널

- 운영 체제의 핵심이 되는 컴퓨터 프로그램의 하나

- 시스템의 모든 것을 완전히 통제한다.

- 운영 체제의 다른 부분 및 응용 프로그램 수행에 필요한 여러가지 서비스를 제공한다.

- 보안, 자원관리, 추상화 같은 역할을 한다.

 

우분투

- 리눅스 배포판 중 하나

- 우분투에는 그래픽 사용자 인터페이스 (GUI)와 명령 행 인터페이스 (CLI)가 있다

- 우분투 시스템에는 많은 소프트웨어가 포함되어 있고 Ubuntu 소프트웨어 센터 또는 다른 APT 기반 패키지 관리 도구에서 더 많은 무료 소프트웨어 및 도구를 다운로드 할 수 있다.
- 또한 바이러스, 웜, 스파이웨어 및 기타 맬웨어와 같은 악성 소프트웨어로부터 데이터 및 리소스를 보호하는 보안 운영 체제이다.

'IT Infra' 카테고리의 다른 글

[Docker] command 입력방법  (0) 2023.06.16
[Ubuntu] SELinux 설치  (0) 2023.06.16
[Docker] 기초 정리  (1) 2023.06.14
PUTTY  (0) 2023.03.31
JWT(JSON Web Token)  (0) 2023.03.29
And
prev | 1 | ··· | 3 | 4 | 5 | 6 | 7 | 8 | 9 | ··· | 39 | next