본문 바로가기
반응형

centOS50

Centos7 mysql - php 연동 확인 소스 코드 1. Centos7 mysql - php 연동 확인 소스 코드connect_errno) die("Connect failed: ".$db->connect_error); $result = $db->query("show databases;"); echo ""; while ($row = $result->fetch_object()) print_r($row); echo "";$result->close(); $db->close(); ?> 2.Centos7 mysql - php 연동 확인 소스 코드  "; $db = mysqli_connect("localhost", "root", "비밀번호", "DB"); if($db){ echo "connect : 성공";}else{ echo "disconnect.. 2024. 6. 13.
Centos 센토스 Apache node.js 도메인 프록시 (proxy) 설정 및 확인 1. Apache 및 node.js 설치 2. node.js 3. Apache VirtualHost 설정 https://bigju.tistory.com/entry/VirtualHost-%EC%84%A4%EC%A0%95-%ED%95%98%EA%B8%B0 VirtualHost 설정 하기 기본 적으로 httpd apache 설치 되어있어야합니당 + AM 다 YUM 으로 설치 되었기때문에 경로는 본인이 설치한걸 기반으로 합니다 1. conf 설정 vi /etc/httpd/conf/httpd.conf NameVirtualHost *:80 ( 추가 / Apache 2.4.x tistory.bigju.co.kr # ServerAdmin DocumentRoot /home/bigju/public_html ServerNa.. 2023. 8. 31.
Centos apache 20.04에 Node.js 설치 실행 1. epl 저장소 설치 yum install epel-release -y 2. Apache 설치 yum install libjpeg* libpng* freetype* gd-* gcc gcc-c++ gdbm-devel libtermcap-devel -y yum install httpd -y 3. Node.js 설치 yum install -y gcc-c++ make yum install nodejs -y 4. 테스트 작성 var http = require ('http'); http.createServer (function (request, response) { response.writeHead (200, {'Content-Type': 'text/html'}); response.end ('Welcome to.. 2023. 8. 30.
ntopng 서비스 관리 IP 추가하기 1. 관리 폴더 생성 cd /etc/ntopng/ //폴더 이동 mkdir ntopng.conf.d // 폴더 생성 2. 관리 인터페이스 및 IP 작성 2-1. vi ens33.conf --daemon --community --data-dir=/home/ntopng --http-port=3000 --dns-mode=1 --capture-direction=1 --interface=ens33 //서버에 적용된 인터페이스 사용 --local-networks="192.168.127./24,10.10.10.0/32" // 관리 IP 관리 #--max-num-hosts | -x #--max-num-flows | -S --max-num-hosts=150000 --max-num-flows=300000 3. 권한 설정 .. 2022. 5. 31.
centos7 - ntopng 설치하기 [centos ntopng / 모니터링] 구성환경 server : HP DL320e Gen8 v2 OS : Centos 7.9 모니터링 설피 :ntopng - ntopng 란? ntop은 네트워크에서 관련된 호스트들과의 관계를 네트워크 트래픽을 통해 모니터링하는 공개 소프트웨어이다 1. ntopng 저장소 추가 curl https://packages.ntop.org/centos/ntop.repo > /etc/yum.repos.d/ntop.repo 2. Epel 저장소 설치 yum install epel-release -y 3. zeromq3 설치 유무 확인 yum erase zeromq3 Loaded plugins: fastestmirror No Match for argument: zeromq3 No Packages marked for remo.. 2022. 5. 30.
반응형

메인으로가기


    

Big Ju

IT Engineer


항상 답을 위해 노력하는

엔지니어입니다.

 

 

    


 UP!