[ Server ][ Linux ] openlitespeed 와 mysql mariaDB 설치 및 실행 > linux

본문 바로가기
사이트 내 전체검색

linux

[ Server ][ Linux ] openlitespeed 와 mysql mariaDB 설치 및 실행

페이지 정보

작성자 웹지기 댓글 0건 조회 11,508회 작성일 19-02-27 17:21

본문

openlitespeed 기능

 - 고성능 이벤트 기반 아키텍처.

 -  초경량, 최소 cpu 및 메모리 리소스

 - apache 호환 재 작성 규칙이 있슴.

 - 사용자에게 친숙한 webadmin GUI

 - 여러가지 모듈을 지원하여 기능을 향상

 - 가상 호스트 페이지 캐싱을 지원

 - 여러버젼의 php설치지원

 

1) centos7 minimall 설치

 

2) openlitespeed 및 php7 설치를 위한 openlitespeed repository 설치 및 활성화

# rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm

 

1.png

 

3)  centos7에 openlitespeed 설치

# yum install openlitespeed

 

2.png

 

4) 설정

# / usr / local / lsws / bin / lswsctrl start
# / usr / local / lsws / bin / lshttpd -v

 

3.png

 

5) openlitespeed 기본포트 8088 방화벽 규칙을 업데이트

# firewall-cmd --zone = public --permanent --add-port = 8088 / tcp
# firewall-cmd --reload

 

6) 브라우져를 열고 openlitespeed의 기본페이지 확인

http : // SERVER_IP : 8088 / 
또는  http : // localhost : 8088

 

7) openlitespeed용 php7 설치

 - php7을 설치할 epel저장소를 활성화

# yum install epel-release

 

8) openlitespeed 에 필요한 모듈을 설치

# yum install lsphp70 lsphp70-common lsphp70-mysqlnd lsphp70-process lsphp70-gd lsphp70-mbstring lsphp70-mcrypt lsphp70-opcache lsphp70-bcmath lsphp70-pdo lsphp70-xml

 

9) php 모듈 설치 나열 

# yum search lsphp70

 

10) openlitespeed 웹콘솔 아이디 비밀번호 구성

# /usr/local/lsws/admin/misc/admpass.sh

 

11) 7080포트에 대한 방화벽 설정

# firewall-cmd --zone=public --permanent --add-port=7080/tcp
# firewall-cmd --reload

 

12) 콘솔프로그램에 접속(아이디 비번확인)

http://SERVER_IP:7080

http://localhost:7070

 

13) php설정 변경

Server Configuration → External App → Add 

type LiteSpeed SAPI App

name lsphp70

address uds://tmp/lshttpd/lsphp.sock

notes LSPHP70 Configuration

Max connections 35

command /usr/local/lsws/lsphp70/bin/lsphp

Save

 

14) lsphp5 스크립트 설정

Server Configuration → Script Handler

suffixs php

handler type LiteSpeed SAPI

handler name lsphp70

notes lsphp70 script handler definition

Save

 

15) 웹포트 8080에서 80으로 변경

Listeners   View    Edit     Save Graceful   Restart

 

서비스 관리 명령어

 

--------------------------------------------------------------------------------------

 

# /usr/local/lsws/bin/lswsctrl start
#start OpenLiteSpeed
# /usr/local/lsws/bin/lswsctrl stop
#Stop OpenLiteSpeed
# /usr/local/lsws/bin/lswsctrl restart
#gracefully restart OpenLiteSpeed (zero downtime)
# /usr/local/lsws/bin/lswsctrl help#show OpenLiteSpeed commands

 

Mariadb 설치

1) Mariadb 데이터베이스 관리 시스템 설치

# yum install openlitespeed mariadb-server

 

2) MariaDB 데이터베이스 시스템 시작 / 설치 보호

# systemctl start mariadb
# mysql_secure_installation

 

MariaDB root 암호 입력 요청에 Enter key를 통해 새 루트 암호를 설정확인 

 


[이 게시물은 웹지기님에 의해 2019-03-15 15:32:33 knowledge에서 이동 됨]
추천0 비추천0

댓글목록

등록된 댓글이 없습니다.

Total 103건 5 페이지
  • 43 [ Server ][ Linux ] centos7 git 버젼업데이트
  • # make configure # ./configure --prefix=/usr # make all doc info @make all doc info 설치시 오류가 발생 @Can't locate ExtUtils/MakeMaker.pm 해결방법 # yum install perl-CPAN # sudo make install install-doc install-html install-info # git --...
  • 웹지기 04-01 7757 0 0 댓글 0
+1
  • 42 [ Server ][ Linux ] centos7 java ( jdk )설치 및 설정
  • @wget을 통해서 설치하므로 wget 설치 # yum install -y wget @다운로드 페이지로 이동해서 다운받을 버젼을 확인한다. https://www.oracle.com/technetwork/java/javase/downloads/index.html @설치된 리눅스의 비트수를 확인하고 거기에 맞는 버젼을 다운받아야 한다 # getconf LONG_BIT @다운로드를 눌러 페이지를 이동한후 승인을 눌러준 후 환...
  • 웹지기 03-18 9676 0 0 댓글 0
  • 41 [ Server ][ Linux ] CentOS7 cron 사용하기 / 파일 자동 실행 설정
  • 1. cron 설정[code][root@linux]# crontab -l//현재 cron 확인[root@linux]# crontab -e//cron 편집 - vi 와 사용법 같음(예)[root@SRV182 ~]# crontab -l30 04 10 * * /root/cron/account_month.php//매월 10일 04시 30분에 /root/cron/account_month.php를 실행하라[/code](필드 설정)필드번호의미첫번째 필드“분(minute)”을 의미. 0,1,2,3,,,,59분까...
  • 웹지기 09-27 11239 0 0 댓글 0
  • 40 [ Server ][ Linux ] CentOS7 rewrite_mod 설정방법
  • Apache rewrite Module-작성자 : 윤일-:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />Apache 는 추가적으로 사용할 수 있는 유용한 모듈들을 제공합니다.이번강좌에서는Apache의 URL Rewrite 모듈을 사용하기 위한 컴파일,설치와 httpd.conf의 설정방법 그리고 활용방법에 대해 알아보겠습니다.Apache 다운로드 :http://www.apache.org1....
  • 웹지기 09-28 13271 0 0 댓글 2
+1
  • 39 [ Server ][ Linux ] CentOS7 php_screw-1.5 설치 (php 소스 암호화)
  • * 설명php_screw 모듈을 설치하면 php 소스를 암호화 할 수 있다.php 가 설치되어 있는 상태에서 모듈만 추가한다.*소스 다운로드wgethttp://sourceforge.net/projects/php-screw/files/php-screw/1.5/php_screw-1.5.tar.gz*설치[root@ php_screw-1.5]# phpizeConfiguring for:PHP Api Version: 20041225Zend Module Api No: 20060613Zend Extension ...
  • 웹지기 09-27 8803 0 0 댓글 0
  • 38 [ Server ][ Linux ] CentOS7 php 소스 컴파일러 설치
  • php 소스컴파일 설치1. 라이브러리 설치// 컴파일 환경설정에 추가해준 라이브러리 들을 우선적으로 설치 해야 한다.// os를 인스톨 할때 선택해 주었다면 설치할 필요가 없다.// 빠진 것이 있다면 컴파일 실행시 경고메세지와 함께 컴파일이 중지된다.--libjpeg 설치 (다운로드 하는곳)----tar xvfz jpegsrc.v7.tar.gz----cd jpegsrc-v7----./configure --enable-shared --enable-static----make----make insta...
  • 웹지기 09-27 11750 0 0 댓글 0
  • 37 [ Server ][ Linux ][ htaccess ] 아이피 차단 관련 설정
  • * 국내아이피를 제외한 나머지 국가에 대해 아이피 차단시 첨부화일을 참고!* 특정 아이피를 차단할경우.htaccess 파일을 편집(만약 123.45.123.45 를 막는다고 할때) :namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />SetEnvIfNoCase remote_addr 123.45.123.45 go_outOrder allow,denyAllow from allDeny from env...
  • 웹지기 10-01 8309 0 0 댓글 0
  • 35 [ Server ][ Linux ] cron사용법(쉘스크립트, 리눅스 파일 자동실행)
  • ## 크론설정(쉘스크립트 실행)---------- ---------- ----------------------------------------------------------------------------------------------------필 드 의 미 범 위---------- ---------- ---------------------------------------------------------------------------------------------...
  • 웹지기 09-11 21635 0 0 댓글 0
  • 34 [ Server ][ Linux ] 계정 용량 확인 / 관리
  • [code]<?php$du=`du -sk`;$save=100; //할당받은 계정용량, 단위 MBytes$du=$du/1000;$result1=$save-$du;$result2=$du;echo "<font size='2' color='#0078FF'>전체 용량 :<font size='2' color='#ff6666'> 100MB</font><br>";ec...
  • 웹지기 09-30 8045 0 0 댓글 0
  • 33 [ Server ][ Linux ] HTTP 1.1 분류 코드표(에러 코드표)
  • HTTP 에러 코드표 (from. 네이버 오픈백과)100 ::: Continue101 ::: Switching Protocols200 ::: OK, 에러없이 전송 성공202 ::: Accepted, 서버가 클라이언트의 명령을 받음.203 ::: Non-authoritavive Information, 서버가 클라이언트 요구중 일부만 정송204 ::: Non Content, 클라이언트 요구를 처리했으나 전송할 데이터가 없음.205 ::: Reset Content206 ::: Partial Conten...
  • 웹지기 09-30 8674 0 0 댓글 0
  • 32 [ Server ][ Linux ] 리눅스 호스팅 서버 관리
  • ■리눅스 호스팅서버 관리************************************************************ 리눅스 호스팅서버 관리************************************************************ 호스팅서비스에 필요한 것들- 리눅스 운영체제- 아파치 웹서버- MySQL 데이터베이스- PHP, Perl 등과 같은 웹프로그래밍언어- 메일서비스 지원을 위한 Sendmail, Qmail, POP, IMAP- Webalizer와 access...
  • 웹지기 09-30 7957 0 0 댓글 0
  • 31 [ Server ][ Linux ] MySQL + Apache + PHP + Zend Optimizer 설치
  • ########################################################### 문서명 : MySQL + Apache + PHP + Zend Optimizer 설치 ## 작성자 : 임희 ## 작성일 : 2003 년 12 월 23 일 (화) 13:00 ## 수정일 : 2004 년 03 월 05 일 (금) 17:00 (수정) ## 수정일 : 2005 년 05 월 21 일 (토) 10:00 (수정) ## 작성서버: KERNEL - 2.4.23 / CPU : P-III 1G /...
  • 웹지기 09-28 10363 0 0 댓글 0
  • 30 [ Server ][ Linux ] 리눅스 파일만들기, 파일옮기기,폴더옮기기, 복사하기, 화면 지우기
  • 리눅스 파일만들기, 파일옮기기, 복사하기, 화면 지우기mv - 이름변경 및 이동을 담당mv 원본파일 대상파일예를들어 test.txt라는 파일이 있다고 치고 나는 /home 디렉토리로 옮기고 싶다면mv test.txt /home로 옮길수 있다.만약 mv test.txt test1.txt라고 한다면 기존의 파일은 사라지고 이름이 변경되게 된다.cp - 파일이나 디렉토리를 다른파일 또는 다른 디렉토리로 복사를 수행한다.cp 원본파일 대상파일cp test.txt /home 이런식으로 사용한다면 test....
  • 웹지기 09-28 10160 0 0 댓글 0
  • 29 [ Server ][ Linux ] httpd.conf 서버 디렉토리 보이게, 안보이게 설정
  • httpd.conf 파일에서 아파치 서버 디렉토리의 폴더및 파일을 보여주거나, 파일 및 폴더를 보여주지않고 오류를 출력할 때 설정 방법. <Directory "D:/AutoSet9/public_html"> #index파일이 없을 때 디렉토리를 감추고 에러를 출력 Options FollowSymLinks #index파일이 없을 때 디렉토리를 보여줌 Options Indexes FollowSymLinks </Di...
  • 웹지기 11-26 8276 0 0 댓글 0
게시물 검색

회원로그인

접속자집계

오늘
5,852
어제
5,809
최대
33,828
전체
8,103,631

그누보드5
Copyright © funyphp.com. All rights reserved.