SlideShare a Scribd company logo
1 of 16
Download to read offline
June 1, 2016 SSS_Harvey 1
웹서버 돌리기
● LAMP
● Linux + Apache + Mysql + PHP
June 1, 2016 SSS_Harvey 2
Lubuntu
● Lightweight Ubuntu
● 가볍다 .
● HDD 10GB
● RAM 1GB
로 install
● 설치시 한글로 , 자동로그인 check
June 1, 2016 SSS_Harvey 3
Lubuntu
● Install VmwareTool
● CD 설정 바꾸고 설치 진행 .
● 바탕화면으로 옮기고 터미널 열음
● $tar xvf VM~~~~.tar.gz
● $sudo ./vmware~/vmware-install.pl
● $sudo reboot
June 1, 2016 SSS_Harvey 4
리눅스 초기 설정
● $sudo apt-get update
● $sudo apt-get install vim
● $sudo apt-get upgrade
● 덤 )
$sudo dpkg-reconfigure tzdata
→ 시간 바꾸기
June 1, 2016 SSS_Harvey 5
Apache 설치
● $sudo apt-get install apache2
● $apache2 -v
● http://localhost/
June 1, 2016 SSS_Harvey 6
PHP 설치
● $sudo apt-get install php libapache2-mod-
php7.0 php-curl
● $php -v
June 1, 2016 SSS_Harvey 7
PHP 설정
● $sudo vi /etc/php/7.0/apache2/php.ini
● $sudo vi /etc/php/7.0/cli/php.ini
● 안에 date.timezone= Asia/Seoul
June 1, 2016 SSS_Harvey 8
MySQL 설치
● $sudo apt-get install mariadb-server
● $/usr/bin/mysql_secure_installation
● $sudo mysql
● use mysql;
update user set plugin='' where User='root';
flush privileges;
exit;
● $sudo apt-get install php-mysql
June 1, 2016 SSS_Harvey 9
MySQL 설정
● $sudo vi /etc/mysql/mariadb.conf.d/50-
server.cnf
● Basic Settings 하단에 추가
● character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
June 1, 2016 SSS_Harvey 10
웹서버켜보기
● $sudo service apache2 restart
● $sudo service mysql restart
June 1, 2016 SSS_Harvey 11
/etc/apache2/sites-
available/localhost.conf
● <VirtualHost *:80>
#main domain
ServerName localhost
#document Root
DocumentRoot /home/{username}/www/
#additional setting
<Directory /home/{username}/www/>
Options FollowSymLinks MultiViews
AllowOverride All
require all granted
</Directory>
AssignUserID {username} {username}
ErrorLog ${APACHE_LOG_DIR}/localhost-error.log
CustomLog ${APACHE_LOG_DIR}/localhost-access.log combined
</VirtualHost>
● {username} 은 계정 명으로 바꿔서
June 1, 2016 SSS_Harvey 12
웹서버켜보기
● $sudo a2dissite 000-default.conf
●
$sudo a2ensite localhost
● $sudo service apache2 restart
● $vim www/index.php
<?php
$date = date("Y-m-d H:i:s");
echo "now : ".$date;
?>
● 브라우져 열고 주소창에 localhost
June 1, 2016 SSS_Harvey 13
번외편 - Django
● python 의 장고 프레임 워크
● 여기서는 테스트 서버만 돌려보자
June 1, 2016 SSS_Harvey 14
virtualenv
● 파이썬 모듈들을 저장해주는 가상환경
● 여러 프로젝트를 진행할때 각각의 환경을 나눠줌
● $sudo apt-get install virtualenv
● $virtualenv venv
● $source venv/bin/activate
June 1, 2016 SSS_Harvey 15
Pip, Django
● Pip : Python install package
● $pip install django
● $django-admin startproject testserver
● $cd testserver
● $python manage.py runserver
June 1, 2016 SSS_Harvey 16
참고자료
● https://blog.lael.be/post/73
● http://ggachi.ncity.net/TIP/7463
● http://mwultong.blogspot.com/2007/04/php-24
-12-yyyy-mm-dd-hhmmss.html
● http://lubuntu.net/
● http://askubuntu.com/questions/629995/apache-n
ot-able-to-restart

More Related Content

What's hot

Basic command ppt
Basic command pptBasic command ppt
Basic command pptRohit Kumar
 
Using the command line on macOS
Using the command line on macOSUsing the command line on macOS
Using the command line on macOSAdamFallon4
 
Empacotamento e backport de aplicações em debian
Empacotamento e backport de aplicações em debianEmpacotamento e backport de aplicações em debian
Empacotamento e backport de aplicações em debianAndre Ferraz
 
Basic linux bash
Basic linux bashBasic linux bash
Basic linux bash皓鈞 張
 
Archlinux install
Archlinux installArchlinux install
Archlinux installsambismo
 
Redis, a 2 minutes introduction
Redis, a 2 minutes introductionRedis, a 2 minutes introduction
Redis, a 2 minutes introductionMirko Calvaresi
 
Basic command of hadoop
Basic command of hadoopBasic command of hadoop
Basic command of hadoopAhmad Kabeer
 
Basic linux commands
Basic linux commands Basic linux commands
Basic linux commands Raghav Arora
 
Best practices for ansible roles development
Best practices for ansible roles developmentBest practices for ansible roles development
Best practices for ansible roles developmentjtyr
 
Huong dan cai dat hadoop
Huong dan cai dat hadoopHuong dan cai dat hadoop
Huong dan cai dat hadoopQuỳnh Phan
 
Contribuir a Drupal - Entorno
Contribuir a Drupal - EntornoContribuir a Drupal - Entorno
Contribuir a Drupal - EntornoKeopx
 
Top 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu CommandsTop 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu CommandsYusuf Felly
 
Linux Getting Started
Linux Getting StartedLinux Getting Started
Linux Getting StartedAngus Li
 

What's hot (19)

Basic
BasicBasic
Basic
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
 
Using the command line on macOS
Using the command line on macOSUsing the command line on macOS
Using the command line on macOS
 
Empacotamento e backport de aplicações em debian
Empacotamento e backport de aplicações em debianEmpacotamento e backport de aplicações em debian
Empacotamento e backport de aplicações em debian
 
Basic linux bash
Basic linux bashBasic linux bash
Basic linux bash
 
Archlinux install
Archlinux installArchlinux install
Archlinux install
 
Redis, a 2 minutes introduction
Redis, a 2 minutes introductionRedis, a 2 minutes introduction
Redis, a 2 minutes introduction
 
Basic command of hadoop
Basic command of hadoopBasic command of hadoop
Basic command of hadoop
 
Cli1 Bibalex
Cli1 BibalexCli1 Bibalex
Cli1 Bibalex
 
Basic linux commands
Basic linux commands Basic linux commands
Basic linux commands
 
Best practices for ansible roles development
Best practices for ansible roles developmentBest practices for ansible roles development
Best practices for ansible roles development
 
Huong dan cai dat hadoop
Huong dan cai dat hadoopHuong dan cai dat hadoop
Huong dan cai dat hadoop
 
Contribuir a Drupal - Entorno
Contribuir a Drupal - EntornoContribuir a Drupal - Entorno
Contribuir a Drupal - Entorno
 
Linux Commands
Linux CommandsLinux Commands
Linux Commands
 
Rpm Introduction
Rpm IntroductionRpm Introduction
Rpm Introduction
 
Linux basic
Linux basicLinux basic
Linux basic
 
Top 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu CommandsTop 10 Random Linux/Ubuntu Commands
Top 10 Random Linux/Ubuntu Commands
 
Linux Getting Started
Linux Getting StartedLinux Getting Started
Linux Getting Started
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 

Viewers also liked

동국대학교 중앙동아리 D.N.A 2014년도 동아리 창립제 발표 자료 - 리눅스 스터디(튜터)
동국대학교 중앙동아리 D.N.A 2014년도 동아리 창립제 발표 자료 - 리눅스 스터디(튜터)동국대학교 중앙동아리 D.N.A 2014년도 동아리 창립제 발표 자료 - 리눅스 스터디(튜터)
동국대학교 중앙동아리 D.N.A 2014년도 동아리 창립제 발표 자료 - 리눅스 스터디(튜터)dgu_DNA
 
리눅스 간단 강의 2강
리눅스 간단 강의 2강리눅스 간단 강의 2강
리눅스 간단 강의 2강Junsu Kim
 
Linux 강의자료 ed10
Linux 강의자료 ed10Linux 강의자료 ed10
Linux 강의자료 ed10hungrok
 
이것이 리눅스다
이것이 리눅스다이것이 리눅스다
이것이 리눅스다Yeon Tae Kim
 
이것이 리눅스다 - 김종욱
이것이 리눅스다 - 김종욱이것이 리눅스다 - 김종욱
이것이 리눅스다 - 김종욱Jong Wook Kim
 
1주차 리눅스의 이해 및 설치, 파티션과 파일 시스템, 부팅매니져
1주차   리눅스의 이해 및 설치, 파티션과 파일 시스템, 부팅매니져1주차   리눅스의 이해 및 설치, 파티션과 파일 시스템, 부팅매니져
1주차 리눅스의 이해 및 설치, 파티션과 파일 시스템, 부팅매니져Chulgyu Shin
 
ITs 2주차_기본명령어(발표)
ITs 2주차_기본명령어(발표)ITs 2주차_기본명령어(발표)
ITs 2주차_기본명령어(발표)Chulgyu Shin
 
시스템 관리자를 위한 리눅스강의 1강 20130203
시스템 관리자를 위한 리눅스강의 1강 20130203시스템 관리자를 위한 리눅스강의 1강 20130203
시스템 관리자를 위한 리눅스강의 1강 20130203doo rip choi
 
리눅스 스터디 1회차
리눅스 스터디 1회차리눅스 스터디 1회차
리눅스 스터디 1회차준혁 이
 
도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!
도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!
도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!pyrasis
 

Viewers also liked (10)

동국대학교 중앙동아리 D.N.A 2014년도 동아리 창립제 발표 자료 - 리눅스 스터디(튜터)
동국대학교 중앙동아리 D.N.A 2014년도 동아리 창립제 발표 자료 - 리눅스 스터디(튜터)동국대학교 중앙동아리 D.N.A 2014년도 동아리 창립제 발표 자료 - 리눅스 스터디(튜터)
동국대학교 중앙동아리 D.N.A 2014년도 동아리 창립제 발표 자료 - 리눅스 스터디(튜터)
 
리눅스 간단 강의 2강
리눅스 간단 강의 2강리눅스 간단 강의 2강
리눅스 간단 강의 2강
 
Linux 강의자료 ed10
Linux 강의자료 ed10Linux 강의자료 ed10
Linux 강의자료 ed10
 
이것이 리눅스다
이것이 리눅스다이것이 리눅스다
이것이 리눅스다
 
이것이 리눅스다 - 김종욱
이것이 리눅스다 - 김종욱이것이 리눅스다 - 김종욱
이것이 리눅스다 - 김종욱
 
1주차 리눅스의 이해 및 설치, 파티션과 파일 시스템, 부팅매니져
1주차   리눅스의 이해 및 설치, 파티션과 파일 시스템, 부팅매니져1주차   리눅스의 이해 및 설치, 파티션과 파일 시스템, 부팅매니져
1주차 리눅스의 이해 및 설치, 파티션과 파일 시스템, 부팅매니져
 
ITs 2주차_기본명령어(발표)
ITs 2주차_기본명령어(발표)ITs 2주차_기본명령어(발표)
ITs 2주차_기본명령어(발표)
 
시스템 관리자를 위한 리눅스강의 1강 20130203
시스템 관리자를 위한 리눅스강의 1강 20130203시스템 관리자를 위한 리눅스강의 1강 20130203
시스템 관리자를 위한 리눅스강의 1강 20130203
 
리눅스 스터디 1회차
리눅스 스터디 1회차리눅스 스터디 1회차
리눅스 스터디 1회차
 
도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!
도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!
도커 무작정 따라하기: 도커가 처음인 사람도 60분이면 웹 서버를 올릴 수 있습니다!
 

Similar to 리눅스 간단 강의 5강

Hadoop installation on windows
Hadoop installation on windows Hadoop installation on windows
Hadoop installation on windows habeebulla g
 
Drupal Pilipinas Apprentice: LAMP Administration, CSS, and Vagrant
Drupal Pilipinas Apprentice: LAMP Administration, CSS, and VagrantDrupal Pilipinas Apprentice: LAMP Administration, CSS, and Vagrant
Drupal Pilipinas Apprentice: LAMP Administration, CSS, and VagrantGerald Villorente
 
Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04SANTIAGO HERNÁNDEZ
 
Single node hadoop cluster installation
Single node hadoop cluster installation Single node hadoop cluster installation
Single node hadoop cluster installation Mahantesh Angadi
 
02 Hadoop deployment and configuration
02 Hadoop deployment and configuration02 Hadoop deployment and configuration
02 Hadoop deployment and configurationSubhas Kumar Ghosh
 
Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14jijukjoseph
 
Speed up your development environment PHP + Nginx + Fedora + PG
Speed up your development environment PHP + Nginx + Fedora + PGSpeed up your development environment PHP + Nginx + Fedora + PG
Speed up your development environment PHP + Nginx + Fedora + PGMarcus Sá
 
Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6Manish Chopra
 
Setting up LAMP for Linux newbies
Setting up LAMP for Linux newbiesSetting up LAMP for Linux newbies
Setting up LAMP for Linux newbiesShabir Ahmad
 
Configure h base hadoop and hbase client
Configure h base hadoop and hbase clientConfigure h base hadoop and hbase client
Configure h base hadoop and hbase clientShashwat Shriparv
 
mapserver_install_linux
mapserver_install_linuxmapserver_install_linux
mapserver_install_linuxtutorialsruby
 
mapserver_install_linux
mapserver_install_linuxmapserver_install_linux
mapserver_install_linuxtutorialsruby
 
mapserver_install_linux
mapserver_install_linuxmapserver_install_linux
mapserver_install_linuxtutorialsruby
 
mapserver_install_linux
mapserver_install_linuxmapserver_install_linux
mapserver_install_linuxtutorialsruby
 
PGConf.ASIA 2019 - High Availability, 10 Seconds Failover - Lucky Haryadi
PGConf.ASIA 2019 - High Availability, 10 Seconds Failover - Lucky HaryadiPGConf.ASIA 2019 - High Availability, 10 Seconds Failover - Lucky Haryadi
PGConf.ASIA 2019 - High Availability, 10 Seconds Failover - Lucky HaryadiEqunix Business Solutions
 
Hadoop meet Rex(How to construct hadoop cluster with rex)
Hadoop meet Rex(How to construct hadoop cluster with rex)Hadoop meet Rex(How to construct hadoop cluster with rex)
Hadoop meet Rex(How to construct hadoop cluster with rex)Jun Hong Kim
 
Nginx 0.8.x 安装手册
Nginx 0.8.x 安装手册Nginx 0.8.x 安装手册
Nginx 0.8.x 安装手册Yiwei Ma
 

Similar to 리눅스 간단 강의 5강 (20)

Hadoop installation on windows
Hadoop installation on windows Hadoop installation on windows
Hadoop installation on windows
 
Drupal Pilipinas Apprentice: LAMP Administration, CSS, and Vagrant
Drupal Pilipinas Apprentice: LAMP Administration, CSS, and VagrantDrupal Pilipinas Apprentice: LAMP Administration, CSS, and Vagrant
Drupal Pilipinas Apprentice: LAMP Administration, CSS, and Vagrant
 
Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04
 
Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04
 
Single node hadoop cluster installation
Single node hadoop cluster installation Single node hadoop cluster installation
Single node hadoop cluster installation
 
02 Hadoop deployment and configuration
02 Hadoop deployment and configuration02 Hadoop deployment and configuration
02 Hadoop deployment and configuration
 
Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14
 
Speed up your development environment PHP + Nginx + Fedora + PG
Speed up your development environment PHP + Nginx + Fedora + PGSpeed up your development environment PHP + Nginx + Fedora + PG
Speed up your development environment PHP + Nginx + Fedora + PG
 
Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6Setting up a HADOOP 2.2 cluster on CentOS 6
Setting up a HADOOP 2.2 cluster on CentOS 6
 
Setting up LAMP for Linux newbies
Setting up LAMP for Linux newbiesSetting up LAMP for Linux newbies
Setting up LAMP for Linux newbies
 
Configure h base hadoop and hbase client
Configure h base hadoop and hbase clientConfigure h base hadoop and hbase client
Configure h base hadoop and hbase client
 
Hadoop Installation
Hadoop InstallationHadoop Installation
Hadoop Installation
 
mapserver_install_linux
mapserver_install_linuxmapserver_install_linux
mapserver_install_linux
 
mapserver_install_linux
mapserver_install_linuxmapserver_install_linux
mapserver_install_linux
 
mapserver_install_linux
mapserver_install_linuxmapserver_install_linux
mapserver_install_linux
 
mapserver_install_linux
mapserver_install_linuxmapserver_install_linux
mapserver_install_linux
 
PGConf.ASIA 2019 - High Availability, 10 Seconds Failover - Lucky Haryadi
PGConf.ASIA 2019 - High Availability, 10 Seconds Failover - Lucky HaryadiPGConf.ASIA 2019 - High Availability, 10 Seconds Failover - Lucky Haryadi
PGConf.ASIA 2019 - High Availability, 10 Seconds Failover - Lucky Haryadi
 
Hadoop meet Rex(How to construct hadoop cluster with rex)
Hadoop meet Rex(How to construct hadoop cluster with rex)Hadoop meet Rex(How to construct hadoop cluster with rex)
Hadoop meet Rex(How to construct hadoop cluster with rex)
 
Nginx 0.8.x 安装手册
Nginx 0.8.x 安装手册Nginx 0.8.x 安装手册
Nginx 0.8.x 安装手册
 
Hadoop completereference
Hadoop completereferenceHadoop completereference
Hadoop completereference
 

More from Junsu Kim

4회ssscon 라이트닝토크(agile) upload
4회ssscon 라이트닝토크(agile) upload4회ssscon 라이트닝토크(agile) upload
4회ssscon 라이트닝토크(agile) uploadJunsu Kim
 
3회ssscon발표자료 접근성
3회ssscon발표자료 접근성3회ssscon발표자료 접근성
3회ssscon발표자료 접근성Junsu Kim
 
2016 software engineering workshop 알려주지 않았지만 알아야 하는 사실들
2016 software engineering workshop 알려주지 않았지만 알아야 하는 사실들2016 software engineering workshop 알려주지 않았지만 알아야 하는 사실들
2016 software engineering workshop 알려주지 않았지만 알아야 하는 사실들Junsu Kim
 
Web Framework (웹 프레임워크)
Web Framework (웹 프레임워크)Web Framework (웹 프레임워크)
Web Framework (웹 프레임워크)Junsu Kim
 
리눅스 간단 강의 4강
리눅스 간단 강의 4강리눅스 간단 강의 4강
리눅스 간단 강의 4강Junsu Kim
 
리눅스 간단 강의 3강
리눅스 간단 강의 3강리눅스 간단 강의 3강
리눅스 간단 강의 3강Junsu Kim
 
리눅스 간단 강의 1강
리눅스 간단 강의 1강리눅스 간단 강의 1강
리눅스 간단 강의 1강Junsu Kim
 
웹 접근성 (Web Accessibility)
웹 접근성 (Web Accessibility)웹 접근성 (Web Accessibility)
웹 접근성 (Web Accessibility)Junsu Kim
 

More from Junsu Kim (9)

4회ssscon 라이트닝토크(agile) upload
4회ssscon 라이트닝토크(agile) upload4회ssscon 라이트닝토크(agile) upload
4회ssscon 라이트닝토크(agile) upload
 
3회ssscon발표자료 접근성
3회ssscon발표자료 접근성3회ssscon발표자료 접근성
3회ssscon발표자료 접근성
 
Django ORM
Django ORMDjango ORM
Django ORM
 
2016 software engineering workshop 알려주지 않았지만 알아야 하는 사실들
2016 software engineering workshop 알려주지 않았지만 알아야 하는 사실들2016 software engineering workshop 알려주지 않았지만 알아야 하는 사실들
2016 software engineering workshop 알려주지 않았지만 알아야 하는 사실들
 
Web Framework (웹 프레임워크)
Web Framework (웹 프레임워크)Web Framework (웹 프레임워크)
Web Framework (웹 프레임워크)
 
리눅스 간단 강의 4강
리눅스 간단 강의 4강리눅스 간단 강의 4강
리눅스 간단 강의 4강
 
리눅스 간단 강의 3강
리눅스 간단 강의 3강리눅스 간단 강의 3강
리눅스 간단 강의 3강
 
리눅스 간단 강의 1강
리눅스 간단 강의 1강리눅스 간단 강의 1강
리눅스 간단 강의 1강
 
웹 접근성 (Web Accessibility)
웹 접근성 (Web Accessibility)웹 접근성 (Web Accessibility)
웹 접근성 (Web Accessibility)
 

Recently uploaded

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 

Recently uploaded (20)

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 

리눅스 간단 강의 5강

  • 1. June 1, 2016 SSS_Harvey 1 웹서버 돌리기 ● LAMP ● Linux + Apache + Mysql + PHP
  • 2. June 1, 2016 SSS_Harvey 2 Lubuntu ● Lightweight Ubuntu ● 가볍다 . ● HDD 10GB ● RAM 1GB 로 install ● 설치시 한글로 , 자동로그인 check
  • 3. June 1, 2016 SSS_Harvey 3 Lubuntu ● Install VmwareTool ● CD 설정 바꾸고 설치 진행 . ● 바탕화면으로 옮기고 터미널 열음 ● $tar xvf VM~~~~.tar.gz ● $sudo ./vmware~/vmware-install.pl ● $sudo reboot
  • 4. June 1, 2016 SSS_Harvey 4 리눅스 초기 설정 ● $sudo apt-get update ● $sudo apt-get install vim ● $sudo apt-get upgrade ● 덤 ) $sudo dpkg-reconfigure tzdata → 시간 바꾸기
  • 5. June 1, 2016 SSS_Harvey 5 Apache 설치 ● $sudo apt-get install apache2 ● $apache2 -v ● http://localhost/
  • 6. June 1, 2016 SSS_Harvey 6 PHP 설치 ● $sudo apt-get install php libapache2-mod- php7.0 php-curl ● $php -v
  • 7. June 1, 2016 SSS_Harvey 7 PHP 설정 ● $sudo vi /etc/php/7.0/apache2/php.ini ● $sudo vi /etc/php/7.0/cli/php.ini ● 안에 date.timezone= Asia/Seoul
  • 8. June 1, 2016 SSS_Harvey 8 MySQL 설치 ● $sudo apt-get install mariadb-server ● $/usr/bin/mysql_secure_installation ● $sudo mysql ● use mysql; update user set plugin='' where User='root'; flush privileges; exit; ● $sudo apt-get install php-mysql
  • 9. June 1, 2016 SSS_Harvey 9 MySQL 설정 ● $sudo vi /etc/mysql/mariadb.conf.d/50- server.cnf ● Basic Settings 하단에 추가 ● character-set-server = utf8mb4 collation-server = utf8mb4_unicode_ci
  • 10. June 1, 2016 SSS_Harvey 10 웹서버켜보기 ● $sudo service apache2 restart ● $sudo service mysql restart
  • 11. June 1, 2016 SSS_Harvey 11 /etc/apache2/sites- available/localhost.conf ● <VirtualHost *:80> #main domain ServerName localhost #document Root DocumentRoot /home/{username}/www/ #additional setting <Directory /home/{username}/www/> Options FollowSymLinks MultiViews AllowOverride All require all granted </Directory> AssignUserID {username} {username} ErrorLog ${APACHE_LOG_DIR}/localhost-error.log CustomLog ${APACHE_LOG_DIR}/localhost-access.log combined </VirtualHost> ● {username} 은 계정 명으로 바꿔서
  • 12. June 1, 2016 SSS_Harvey 12 웹서버켜보기 ● $sudo a2dissite 000-default.conf ● $sudo a2ensite localhost ● $sudo service apache2 restart ● $vim www/index.php <?php $date = date("Y-m-d H:i:s"); echo "now : ".$date; ?> ● 브라우져 열고 주소창에 localhost
  • 13. June 1, 2016 SSS_Harvey 13 번외편 - Django ● python 의 장고 프레임 워크 ● 여기서는 테스트 서버만 돌려보자
  • 14. June 1, 2016 SSS_Harvey 14 virtualenv ● 파이썬 모듈들을 저장해주는 가상환경 ● 여러 프로젝트를 진행할때 각각의 환경을 나눠줌 ● $sudo apt-get install virtualenv ● $virtualenv venv ● $source venv/bin/activate
  • 15. June 1, 2016 SSS_Harvey 15 Pip, Django ● Pip : Python install package ● $pip install django ● $django-admin startproject testserver ● $cd testserver ● $python manage.py runserver
  • 16. June 1, 2016 SSS_Harvey 16 참고자료 ● https://blog.lael.be/post/73 ● http://ggachi.ncity.net/TIP/7463 ● http://mwultong.blogspot.com/2007/04/php-24 -12-yyyy-mm-dd-hhmmss.html ● http://lubuntu.net/ ● http://askubuntu.com/questions/629995/apache-n ot-able-to-restart