본문 바로가기

CentOS 76

CentOS 7 SELinux 사용 SELinux 사용에 필요한 패키지들을 설치합니다. yum install policycoreutils-python yum install setools setools-console setroubleshoot* yum install policycoreutils-devel 메뉴얼 페이지를 생성합니다. sepolicy manpage -a -p /usr/share/man/man8; mandb 현재 SELinux 의 상태를 확인하려면 다음 명령어를 실행합니다. sestatus SELinux 의 모드는 Enforcing, Permissive, Disabled 3가지가 있으며 각각 운영, 디버그, 중지 모드라고 생각하면 됩니다. 모드를 변경하려면 /etc/selinux/config 파일을 수정하면 됩니다. 임시로 모드.. 2020. 3. 4.
RoundCube 웹메일 설치하기 - nginx, php-fpm, CentOS 7 먼저, 패키지 설치를 합니다. yum install roundcubemail mediawiki, phpmyadmin 등 아파치 기반의 패키지들을 nginx 로 사용하기 위하여, php-fpm 풀에서 www 의 경우 유저와 그룹을 apache 로 지정하여 사용합니다. RoundCube 웹메일도 마찬가지로 www 풀(파일소켓이 아닌 9000번 포트로 지정해뒀는데... 추후 바꿀 예정입니다.)을 사용하도록 nginx 설정 파일을 생성합니다. vi /etc/nginx/conf.d/roundcube.confserver { listen 80; server_name webmail.도메인주소; root /usr/share/roundcubemail; # Logs access_log /var/log/roundcubemai.. 2016. 5. 27.
xrdp 원격데스크탑 연결 - CentOS 7 리눅스 데스크탑을 원격으로 접속하여 사용할 경우, xlaunch 나 TeamViewer 를 사용해왔는데 새로운 놈이 보여 설치하고 사용해보았습니다. yum install xrdp xrdp 서비스를 부팅시 실행하도록 설정한 후 실행합니다. systemctl enable xrdp systemctl start xrdp 3350, 3380 tcp 포트가 열려있으면 정상적으로 실행된 것입니다. 방화벽이나 SELinux 를 사용한다면 관련 설정을 추가하여야합니다.(저는 내부 개발용 리눅스라 무시.....^^) 만약, CentOS 7 의 기본 언어가 한글로 설정되어있다면 아래와 같이 언어 관련 설정을 추가합니다. vi /etc/xrdp/startwm.sh export LANG=ko_KR.UTF-8 이제 윈도우즈의 원.. 2016. 5. 25.
CentOS 7 Docker 설치하기 최신 Docker 를 사용하기 위하여 리포지토리를 추가합니다. vi /etc/yum.repos.d/docker.repo [dockerrepo]name=Docker Repositorybaseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/enabled=1gpgcheck=1gpgkey=https://yum.dockerproject.org/gpg 패키지를 설치합니다. 이때 패키지명은 docker-engine 이며, 설치가 완료되면 서비스를 실행하고 부팅시 자동실행되도록 설정합니다. yum install docker-engine service docker startchkconfig docker on 일반 계정에서 sudo 를 사용하지 않고 바로 d.. 2016. 2. 18.
CentOS 7.x 에서 php 5.6.x 또는 7 설치하기 최신의 PHP 를 설치하기 위하여 yum 저장소를 추가합니다. rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmrpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm remi 저장소의 remi, remi-php56 을 활성화합니다. vi /etc/yum.repos.d/remi.repo [remi]name=Les RPM de remi pour Enterprise Linux 7 - $basearch#baseurl=http://rpms.famillecollet.com/enterprise/7/remi/$basearch/mirrorlist=http://r.. 2015. 4. 22.
CentOS 7 서비스 관리 CentOS 7 부터 서비스 데몬 관리 방법이 달라졌습니다. 기존의 init system 에서 systemd 로 기본 시스템 관리 데몬이 변경되었기 때문입니다. 1. 서비스 재실행(sshd 의 경우) systemctl restart sshd.service 2. 서비스 중지(sshd 의 경우) systemctl stop sshd.service 3. 서비스 시작(sshd 의 경우) systemctl start sshd.service 4. 서비스 상태보기(sshd 의 경우) systemctl status sshd.service 5. 부팅시 서비스 시작하기(sshd 의 경우) systemctl enable sshd.service 6. 부팅시 서비스 시작하지 않음(sshd 의 경우) systemctl disabl.. 2015. 4. 22.