일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- 워드프레스
- ConoHa
- 보르비스초월
- 거제도
- 아파치
- 복현오거리
- 자바스크립트
- 알리익스프레스
- 시놀로지
- Apache
- 리눅스
- iptime
- 가상서버호스팅
- 윈도우10
- 스톤에이지
- centos
- 티스토리
- KB국민카드
- html/css
- php
- mysql
- 램가스초월
- 소비전력
- SKT
- Ajax
- 킹북이초월
- 알뜰폰
- KB증권
- jQuery
- proxmox
- Today
- Total
목록centos (17)
맛집 여행 캠핑 일상 생활
Proxmox 에서 container 로 centos 9 stream 을 설치했는데 sshd 서비스가 디폴트로 안깔려있네요~ 버전이 한번 바뀌때마다 적응해야할게 많네요~ yum -y install openssh-server systemctl enable sshd systemctl start sshd 이제 다시 접속을 시도해 봅니다. [root@raspberry ivps]# ssh root@192.168.1.2 root@192.168.1.2's password: Permission denied, please try again. root@192.168.1.2's password: 루트로 접속하는게 기본적으로 막혔있나봅니다. echo "PermitRootLogin yes" >> /etc/ssh/sshd_con..
wget 으로 https 보안인증서가 있는 서버에 접근시 아래와 같은 에러가 나면서 다운로드가 되지 않습니다. [root@raspberry log]# wget https://www.example.com/ccs/download.txt --2023-11-27 08:55:18-- https://www.example.com/ccs/download.txt Resolving http://www.example.com (http://www.example.com)... 192.168.1.2 Connecting to http://www.example.com (http://www.example.com)|192.168.1.2|:443... connected. ERROR: cannot verify http://www.examp..
기존 php 5.x 버전에서 7.4 버전으로 사용하려고 PHP Multiple 환경으로 설치하였습니다. phpMyAdmin 버전은 4.4.15.10 입니다. 아파치 설정하고 로그인 시도를 하니 로그인이 안되는 문제가 있습니다. # chmod 777 /var/opt/remi/php74/lib/php/session 위 디렉토리 퍼미션을 변경해 주니 잘됩니다. 에러 로그도 없어서 한참 동안 삽질을 했네요~
서버가 몇 년만인지 모르겠지만 아래와 같이 아파치 재시작이 안되는 현상이 있네요~ apachectl configtest 로는 아무런 이상도 없는데 재시작이 되지를 않아서 journalctl -xe 로 로그를 확인한 결과입니다. [root@example conf.d]# journalctl -xe -- The result is failed. Jul 17 08:53:49 example.com systemd[1]: Unit httpd.service entered failed state. Jul 17 08:53:49 example.com systemd[1]: httpd.service failed. Jul 17 08:53:49 example.com polkitd[26529]: Unregistered Authenti..
크롬 브라우저에서 확장프로그램을 이용한 특정 사이트 접속시 프록시 서버를 이용하려고 사설 Proxy 서버를 구축해 봅니다. OpenVPN 뿐만 아니라 다른 VPN 확장 프로그램에서는 개인이 만든 .ovpn 파일로 설정하는 방법이 없더군요~ 그래서 Proxy SwitchyOmega 확장프로그램에서 특정 사이트 접속이 auto_switch 되도록 하는 방법을 사용하려고 합니다. 1. 먼저 프록시 서버 부터 구축합니다. CentOS 7.x # yum -y install squid CentOS 8.x # dnf -y install squid 2. 프록시 허용 IP 대역 환경 설정 # vi /etc/squid/squid.conf 아랫 부분에 추가 # # INSERT YOUR OWN RULE(S) HERE TO A..
이번에는 오라클 클라우드 VM에 CentOS 8 Stream 버전에서 아파치 + PHP-FPM 여러버전 설치하는 방법입니다. dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm dnf -y install httpd nginx mod_ssl dnf -y install php php-fpm dnf -y module reset php dnf -y module enable php:remi-7.3 dnf -y update 디폴트 PHP 버전은 7.3으로 설정하겠습니다. ( CentOS 8..
서버를 하나 다시 설정하려고 보니 아래와 같은 에러가 나는군요~ 환경설정 파일은 백업 받았는데 모듈을 설치 안한 것 같습니다. [root@localhost conf.d]# apachectl configtest AH00526: Syntax error on line 18 of /etc/httpd/conf.d/ssl.conf: Invalid command 'SSLPassPhraseDialog', perhaps misspelled or defined by a module not included in the server configuration # yum -y install mod_ssl
Brute force 공격에 대비하는 여러가지 방법 중에 하나인 fail2ban 을 설치하는 방법이 있습니다. 아래의 방법대로 설치하면 됩니다. yum -y install fail2ban fail2ban-systemd whois cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local vi /etc/fail2ban/jail.local ignoreip = 127.0.0.1/8 192.168.1.0/24 bantime = 48h findtime = 2h maxretry = 5 backend = polling destemail = root@localhost sender = root@localhost mta = sendmail sed -i '/^\[apache/a\enable..
백업할 때 매번 ftp 로 접속해서 백업하는 것 보다는 마운트 해서 백업하는게 훨씬 편할 것 같아서 검색해봤습니다. 역시나 curlftpfs 라는 훌륭한 유틸리티가 있네요~ [root@localhost ~]# yum -y install curlftpfs [root@localhost ~]# vi /root/.netrc machine 192.168.0.1 login 접속아이디 password 비밀번호 [root@localhost ~]# chmod 600 /root/.netrc [root@localhost ~]# curlftpfs -o allow_other 192.168.0.1:21 /mnt mount 가 되고 속도가 얼마나 나오는지 테스트 해봤습니다. [root@localhost mnt]# dd if=/de..
매일 실행해야될 쉘스크립트가 실행이 안되어 있어서 /var/log/cron 로그 파일을 봤더니 아래와 같은 메시지가 있네요~ (CRON) INFO (@reboot jobs will be run at computer's startup.) 운영중인 서버라 재부팅 하기는 그렇고 크론데몬이 멈춘 상태에서 크론이 죽었는지 체크할 방법이 떠오르지 않아서 다른 서버에서 체크해서 재시작 해주는 방법을 생각했네요~ ㅋ #!/bin/sh SERVER_STR="root@192.168.1.2" if [ `ssh -p포트번호 $SERVER_STR "pstree | grep crond | wc -l"` == 0 ] ; then ssh -p포트번호 $SERVER_STR "systemctl restart crond" fi ssh 접..