목록전체 글 (63)
yumyum

basic 은 : pw 가 평문 digest : pw 가 암호화 Basic # vim /etc/httpd/conf.d/auth_basic.conf -> 파일 만들어주기 # cat /etc/httpd/.htpasswd -> pw 설정해준것 확인 (암호화되어 설정된것을 볼 수 있음) /var/www/html 로 이동 ls 해서 확인해서 basic 확인 basic 으로 이동 # cp /var/www/html/index.html index.html -> /var/www/html의 index.html 파일을 basic에 index.html 의 이름으로 복사한다 # systemctl restart httpd -> httpd를 재시작 192.168.111.100/basic 으로 접속했을때 로그인해야 접속할 수 있음 ..

# yum -y install php php-pear -> php 깔아주기 # rpm -qa | grep php -> 설정확인 # vim /var/www/html/index.php -> index 파일 만들어주기 => 외부에서 192.168.111.100/index.php 접속 그냥 192.168.111.100 으로 접속하면 그 전에 만든 html이 뜨는데, # mv index.html bak index.html -> 이 명령어로 우선순위를 바꿔 php가 뜨게 할 수 있음 # vim /etc/php.ini -> php 정보 확인해주기 _____________________________________________________________________________ CGI cgi란? 웹 서버가 클라..

# yum -y install httpd -> httpd 깔아주기 # rpm -qa | grep httpd -> httpd 깔아준거 확인 # systemctl restart httpd # systemctl enable httpd # systemctl status httpd #systemctl stop firewalld # systemctl disable firewalld #l ls /etc/httpd # ls -l /var/www # lsof -i tcp:80 # httpd -v -> 버전 확인하기 # ls /var/log/httpd access_log error_log ssl_access_log ssl_error_log ssl_request_log # vim /etc/httpd/conf/httpd.co..

XE firefox에서 xe 다운받기 cd [tab] [tab] 으로 확인후 다운로드로 이동 ls로 다운받은 파일 확인 -> xe.zip xe.zip 파일을 var/www/html 로 이동시켜주기 var/www/html 로 이동하기 -> unzip xe.zip 하여 zip파일 압축 풀어주기 -> ll 하여 xe 폴더 생긴것 확인 [root@localhost html]# chmod 707 xe [root@localhost html]# chown apache.apache xe [root@localhost html]# mysql Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 2 Server vers..

[root@localhost ~]# rpm -qa httpd php maradb-server httpd-2.4.6-95.el7.centos.x86_64 [root@localhost ~]# yum -y install httpd php php-mysqlnd mariadb mariadb-server apm 확인후 apm 설치 [root@localhost ~]# rpm -qa httpd php maradb-server php-5.4.16-48.el7.x86_64 httpd-2.4.6-99.el7.centos.1.x86_64 [root@localhost ~]# systemctl restart httpd [root@localhost ~]# systemctl enable httpd Created symlink fro..
텔넷 - 오랫동안 전통적으로 사용되어 온 원격 접속 방법 - 보안에 취약 - 리눅스 서버에 텔넷 서버를 설치하고 나면, 원격지에서 접속할 PC에는 텔넷 클라이언트 프로그램이 필요 - 원격지의 PC(텔넷 클라이언트)에서 접속하게 되면 서버 앞에 앉아서 직접 텍스트 모드로 작업하는 것과 완전히 동일한 효과 OpenSSH 서버 - 텔넷과 용도는 동일하지만, 보안이 강화 - 텔넷과 달리 데이터를 전송할 때 암호화를 함

[root@localhost ~]# yum -y install telnet-server Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.kakao.com Resolving Dependencies --> Running transaction check ---> Package telnet-server.x86_64 1:0.17-66.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =========..

IDE 장치와 SCSI 장치의 구성 Vmware Player 5.0.x는 총 60개의 SCSI 하드디스크, 총 4개의 IDE 하드 디스크를 장착할 수 있다. - 하드디스크를 물리적으로는 /dev/sda, /dev/sdb, /dev/sdc ... 형식으로 부른다 - 디스크 파티션이 나눠진 것을 논리적으로는 /dev/sda1, /dev/sda2, /dev/sda3, /dev/sdb1 .... 형식으로 부른다 ** 파티션은 그냥 사용할 수 없으며, 반드시 특정한 디렉터리에 마운트 시켜야만 사용이 가능하다 Raid 여러 개의 디스크를 하나의 디스크처럼 사용함 -> 비용절감 + 신뢰성 향상 + 성능 향상의 효과를 냄 하드웨어 RAID -하드웨어 제조업체에서 여러 개의 하드디스크를 가지고 장비를 만들어서 그 자체를..