Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

LinuxをインストールしてWebサーバーを立ち上げてみよう【OSC2018 Tokyo/Spring】

363 views

Published on

OSC 2018 Tokyo/SpringのLinux入門コース企画で発表したLinuxインストールについてのスライドです。
CentOS7とUbuntu17.10をVirtualBox上へインストールする流れをご紹介しています。また、SSHログインとWebサーバ(Apache httpd)のインストールについての簡単に触れています。

Published in: Technology
  • Be the first to comment

LinuxをインストールしてWebサーバーを立ち上げてみよう【OSC2018 Tokyo/Spring】

  1. 1. Linux Web Tokyo HackerSpace (@tsukaman)
  2. 2. Agenda u Who am I ? u u u u u CentOS u Ubuntu u u u u SSH u Web u Apache httpd u Web 2
  3. 3. Who am I ? 3
  4. 4. Who am I ? u u @tsukaman u u Tokyo HackerSpace u Rancher JP u u UNIX Solaris Linux Raspberry Pi 4
  5. 5. 5
  6. 6. u VM u u VirtualBox VMware Parallels u u u PC Raspberry Pi u u u AWS Azure ConoHa 6
  7. 7. u Linux u Linux Linux OS uOS u u u u uhttps://upload.wikimedia.org/wikipedia/commons/1/1b/ Linux_Distribution_Timeline.svg 7
  8. 8. OSC u Linux u Debian Debian JP Project/ Debian u Gentoo Linux Gentoo u NixOS NixOS u openSUSE openSUSE u Ubuntu Ubuntu Japanese Team u Xandros Xandrosers Community u u opencocon u RancherOS Rancher JP u Raspbian Japanese Raspberry Pi Users Group u Linux u NetBSD NetBSD u OpenSolaris OpenSolaris 8
  9. 9. u u OS u macOS High Sierra (10.13.3) u u Oracle VM VirtualBox (5.2.6 r120293 (Qt5.6.3)) u u vCPU:2core, vMem:1GB, vDisk:80GB (Thin Provisioning) u Linux u CentOS 7(1708), Ubuntu 17.10 (Artful Aardvark) ( Remix) 9
  10. 10. 10
  11. 11. ISO CentOS u CentOS Project ISO u https://www.centos.org u 3 u DVD ISO DVD u Everything ISO u Minimal ISO 11
  12. 12. 12
  13. 13. 13
  14. 14. 14
  15. 15. ISO Ubuntu u Ubuntu Japanese Team ISO u https://www.ubuntulinux.jp/home u Ubuntu Remix u Ubuntu u 15
  16. 16. 16
  17. 17. 17
  18. 18. 18
  19. 19. u VirtualBox u u CPU u u u NIC u u VirtualBox u PC 19
  20. 20. 20 u CentOS 1 u CentOS_7
  21. 21. 21 u 1024MB CentOS 2 u
  22. 22. 22 u VDI CentOS 3 u
  23. 23. 23 u 80.00 GB CentOS 4
  24. 24. 24 u [ ] ISO CentOS 5
  25. 25. 25 u Ubuntu_17.10 CentOS Ubuntu
  26. 26. u u u u / u u 10 u 26
  27. 27. 27 u Install CentOS Linux 7 CentOS 1 u j
  28. 28. 28 u u CentOS 2
  29. 29. 29 u GNOME Desktop CentOS 3
  30. 30. 30 u CentOS 4
  31. 31. 31 u CentOS 5
  32. 32. 32 u CentOS 6
  33. 33. 33 u ROOT CentOS 7
  34. 34. 34 u CentOS 8
  35. 35. 35 u CentOS 9
  36. 36. 36 u Ubuntu Ubuntu 1
  37. 37. 37 Ubuntu 2 u u …
  38. 38. 38 Ubuntu 3 u u
  39. 39. 39 Ubuntu 4 u u
  40. 40. 40 Ubuntu 5 u u
  41. 41. u u u $ sudo < > u u u yum apt u shutdown u systemctl service 41
  42. 42. u 42
  43. 43. CentOS u / u eula u u u u u 43
  44. 44. 44
  45. 45. u u sudo uRedHat(RPM) $ sudo yum –y upgrade uDebian(deb) $ sudo apt –y update ; sudo apt –y upgrade u sudo u$ sudo shutdown –r now u -r h u now 45
  46. 46. u u OS uVirtualBox Guest Additions uVMware VMware Tools u VirtualBox GuestAdditions u uCentOS $ sudo yum –y install kernel-devel gcc uUbuntu $ sudo apt –y install gcc make 46
  47. 47. 47
  48. 48. u SSH Linux u openssh-server u CentOS uUbuntu u $ sudo apt –y install openssh-server u Windows TeraTerm Putty RLogin u macOS UNIX/Linux ssh u$ ssh < >@< ( IP )> 48
  49. 49. VirtualBox u u NAT PC u u PC 49
  50. 50. u Linux IP u $ ip a 50
  51. 51. 51 macOS ssh u CentOS u Ubuntu
  52. 52. Web 52
  53. 53. Apache httpd u Web Apache httpd u sudo u CentOS $ sudo yum -y install httpd u Ubuntu $ sudo apt -y install apache2 u CentOS / Ubuntu u $ sudo firewall-cmd --permanent --zone=public --add-service=http u$ sudo firewall-cmd --permanent --zone=public --add-service=https u$ sudo firewall-cmd --reload u$ sudo systemctl enable httpd ; sudo systemctl start httpd 53
  54. 54. Apache httpd u Web /var/www/html u $ echo “Hello world” | sudo tee /var/www/html/index.html 54
  55. 55. Thank you!! Tokyo HackerSpace (@tsukaman) 55

×