(주)누리웨어

화상연동/Web,APP 구축및서비스/LMS/평생교육/학점은행/기업교육/연수관리/설문구축/

SSH 키 생성

SSH Key – 비밀번호 없이 로그인 SSH Key란? 서버에 접속 할 때 비밀번호 대신 key를 제출하는 방식이다. SSH Key는 언제 사용하는가? 비밀번호 보다 높은 수준의 보안을 필요로 할 때 로그인 없이 자동으로 서버에 접속 할 때 SSH Key가 동작하는 방식 SSH Key는 공개키(public key)와 비공개 키(private key)로 이루어지는데 이 두개의 관계를 이해하는 것이 SSH Key를 […]

CentOS 8 + MySQL Install

1.설치 –  install mysql – [root@localhost /]# yum install mysql-server 2.서비스 시작 [root@localhost /]# systemctl start mysqld.service [root@localhost /]# systemctl start mysqld 3.서버 자동시작 4. 서버 재구동시 mysql 자동 서비스 구동 설정 5.패스워드 정책설정 최초설정- $ mysql_secure_installation 정책변경 – [root@localhost my.cnf.d]# cat mysql-server.cnf #Password Ploicy validate_password.policy=LOW 7.ssh 포트변경 – 1)selinux 완전 사용안함 변경 vi /etc/selinux/config SELINUX=disabled […]

Centos 7 firewall-cmd

1)add port firewall-cmd –permanent –zone=public –add-port=80/tcp firewall-cmd –reload (설정적용) firewall-cmd –list-all (확인) 2)remove port firewall-cmd –permanent –zone=public –remove-port=80/tcp  

Cloud9 volume 확장

xvda 일경우 1)  ec2 의 스토리지로 가서 볼륨확장후 – xvda ec2-user:~/environment $ sudo growpart /dev/xvda 1 – /dev/nvme0n1 일경우 ec2-user:~/environment $ sudo growpart /dev/nvme0n1 1 ec2-user:~/environment $ sudo xfs_growfs -d /

Centos public key connect

1.Client [root@client ~]#ssh-kegen -t rsa ssh-copy-id -i .ssh/id_rsa.pub root@서버 그리고 바로   ssh root@서버 해서 로그인하면 키없이 로그인가능한 상태입니다.

Centos + PHP5.6 수동설치

1.Download cd /app/install wget http://kr1.php.net/distributions/php-5.6.17.tar.gz tar xzvf php-5.6.17.tar.gz 2.Library install yum install -y libxml2-devel libcurl-devel gd-devel libmcrypt-devel 3.Compile & install cd /usr/local/php-5.6.17 ./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache/bin/apxs –with-mysql=/usr/local/mysql –with-mysqli=/usr/local/mysql/bin/mysql_config –with-pdo-mysql=/usr/local/mysql –disable-debug –enable-sigchild –enable-inline-optimization –enable-sysvsem –enable-sysvshm –enable-bcmath –enable-ftp –enable-sockets –enable-exif –enable-soap –with-zlib-dir=/usr –with-zlib –with-gd –with-jpeg-dir=/usr –with-png-dir=/usr –with-freetype-dir=/usr –with-iconv –enable-mbstring –with-curl –with-openssl –enable-zip make && make install

Centos7 apache install (수동설치)

root권한으로 실행합니다. 1.필수 라이브러리 설치

  3.apr, apr-util, pcre,httpd 다운로드 및 컴파일

작동확인 [root@hae bin]# cd /app/web/apache2/bin [root@hae bin]# ./apachectl start [root@hae bin]# netstat -tulpn | grep LISTEN tcp 0 0 0.0.0.0:7990 0.0.0.0:* LISTEN 9188/ssh tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1001/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1595/master tcp 0 0 0.0.0.0:3389 […]

Linux mount/umount

mount 확인후 할당

리부팅할경우도 마운트 유지 Auto mount (case restart) [root@test /]# vi /etc/fstab

Linux Centos 8 apache install

1) yum install httpd 2) 확인 [root@hae sbin]# httpd -version Server version: Apache/2.4.6 (CentOS) Server built: Nov 16 2020 16:18:20 3) 방화벽설정 [root@hae sbin]# firewall-cmd – -state running [root@hae conf]# firewall-cmd  – -permanent – -add-service=http success [root@hae conf]# firewall-cmd  – -permanent – -add-service=https success [root@hae conf]# firewall-cmd  – -reload success [root@hae conf]# systemctl enable httpd […]

Linux(CentOS) open java 8 install

1.java 확인 [root@hae bin]# which java /usr/bin/java 2.없을 경우 yum install [root@hae ~]# yum install java-1.8.0-openjdk 3.확인 [root@hae ~]# which java /usr/bin/java [root@hae ~]# cd /usr/bin [root@hae bin]# ls -al|grep java lrwxrwxrwx. 1 root root 26 Feb 19 19:25 alt-java -> /etc/alternatives/alt-java lrwxrwxrwx. 1 root root 22 Feb 19 19:25 java -> /etc/alternatives/java [root@hae bin]# […]

Previous Posts Next posts