전체 글213 windows 10 / rufus / 부팅USB 2020. 4. 16. CentOS 설치 후 기본작업내용 1. yum 자동업데이트 yum -y update yum -y install yum-cron systemctl enable yum-cron systemctl restart yum-cron vi /etc/yum/yum-cron.conf ... apply_updates = yes ... 서비스 목록 확인 systemctl list-unit-files --type=service 해당서비스의 상태확인 systemctl status sshd.service 부팅시 실행되는 서비스인지 확인(ex : sshd) systemctl is-enabled sshd -------- Cent OS 8 [root@nginx audit]# yum -y install dnf-automatic [root@nginx audit]# dnf.. 2019. 4. 15. [centos] Centos 설치 후 처리 1. 보안설정 - 방화벽설치 - 서비스 port 오픈 yum -y install firewalld systemctl start firewalld systemctl enable firewalld systemctl stop firewalld firewall-cmd --permanent --zone=public --add-port=80/tcp firewall-cmd --permanent --zone=public --add-port=8080/tcp firewall-cmd --reload firewall-cmd --list-ports firewall-cmd --list-services 1. setup 설치 yum -y install setup setuptool system-config-* 2. ntp 설치 yum.. 2019. 4. 12. nodejs helloworld sample [root@2734 3000]# cd 3000 [root@2734 3000]# npm init [root@2734 3000]# npm install express --save npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN 3000@1.0.0 No description npm WARN 3000@1.0.0 No repository field. + express@4.16.4 added 48 packages from 36 contributors and audited 121 packages in 1.478s found 0 vulnerabilities [root@2734 3000]# ls node_mo.. 2019. 4. 10. nginx default.conf 1. vi /etc/nginx/nginx.conf # # The default server # server { listen 80; server_name test1.test.com; root /opt/www/test1; location / { try_files $uri $uri/ =404; } } ############################################# server { listen 80; server_name test2.test.com; root /opt/www/test2; location / { try_files $uri $uri/ =404; } } ############################################ server { listen 80; server_n.. 2019. 4. 10. centos / nginx / install nginx on centos 7 yum -y install epel-release yum -y install nginx systemctl start nginx sudo firewall-cmd --permanent --zone=public --add-service=http sudo firewall-cmd --permanent --zone=public --add-service=https sudo firewall-cmd --reload systemctl enable nginx systemctl restart nginx vi /etc/nginx/nginx.conf ... http { ################################ server { listen 80; server_name xxxxxxx.test.com; locatio.. 2019. 4. 10. 이전 1 ··· 21 22 23 24 다음 반응형