티스토리 뷰
18.07.24
웹서버 운영위해, AZURE VM 'Ubuntu'에서 Apache 설치.
검색하면 나오는 일반적인 방법으로 설치하면
- sudo apt-get update
- sudo apt-get install apache2
/var/www/html/ 폴더에 index.html 파일이 생성된다. (default page)
여기에 .html을 포함한 우리 프로젝트 파일들을 가져오자.
먼저 git을 통해 프로젝트를 불러온다.
- root에서 gdvbs폴더 생성
- cd gdvbs
- git init
- git clone https://github.com/os94/Week4
불러오기 완료. git폴더안의 프로젝트 파일들을 ~html/ 위치로 복사하자.
- cd /home/inhibitor/gdvbs/Week4/Gdvbs_Gdvbs (/@ 폴더는 어디서든 cd로 이동가능함)
- git pull (업데이트)
- sudo cp -R . /var/www/html
복사완료. AZURE VM이 가동중이므로, 이제 어디서든 VM IP를 통해 내 웹 사이트에 접근가능.
(url에 ip만 치면 기본적으론, ~html/폴더의 index.html파일로 연결)
(ip/gdvbs.html처럼 directory이동간의 접근도 물론 가능)
18.07.25
로컬에서 프로젝트 거의 완성되어 서버에 올리자.
apache는 설치했으므로, mysql과 php 설치 (구글링하면 나오는 일반적인 방법으로 설치가능)
- mysql 설치시 root계정 pw 입력및기억
- 여기선 php 설치시 sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql으로
뒤에 옵션붙여 LAPM간 호환성? 문제 해결한것으로 보임 - mysql prompt로 접속해, db와 table&field 생성 및 .sql파일 import 등 초기세팅.
=> AZURE ip 접속시 정상적으로 웹사이트 동작. 웹서버 업로드 완료
KAIST.MadCamp.Week4 프로젝트 참고 링크
- https://www.w3schools.com
- https://opentutorials.org/course/3084/18895
- https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04
- https://www.digitalocean.com/community/tutorials/a-basic-mysql-tutorial
- http://wisetrue.tistory.com/28?category=748185
'Daily.log' 카테고리의 다른 글
좋은 개발자란 (0) | 2019.09.12 |
---|---|
2018-summer) 여름방학 회고 - KAIST MadCamp & Blackhat USA (0) | 2019.09.12 |
18.08.03) JSON, MongoDB, Node.js 이론 (0) | 2019.09.11 |
18.07.25) .php가 그대로 출력되는 문제 (0) | 2019.09.11 |
18.07.07) AZURE - Ubuntu VM, MongoDB, Node.js (0) | 2019.09.11 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 리버싱
- queue
- 우아한 테크코스
- socket
- 웹해킹
- Android
- Algorithm
- FRAGMENT
- git
- 회고
- Data Structure
- webhacking.kr
- dfs
- Android Studio
- Vo
- 해외여행
- 프로그래머스
- Stack
- mysql
- brute-force
- Java
- reversing
- sort
- C
- javascript
- JPA
- 개발자
- OneToMany
- bfs
- graph
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함