Advertisement
sandervanvugt

RHCSA nov20 day4 part2

Nov 16th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. #### STUDENT HISTORY DAY 4 SERVER1
  2. 1 sudo -i
  3. 2 su - linda
  4. 3 su -
  5. 4 sudo -i
  6. 5 su -
  7. 6 sudo -i
  8. 7 ssh root@192.168.4.182
  9. 8 sudo -i
  10. 9 podman run -d nginx
  11. 10 podman login registry.redhat.io
  12. 11 sudo vim /etc/containers/registries.conf
  13. 12 podman pull registry.access.redhat.com/ubi8/ubi:latest
  14. 13 podman ps
  15. 14 podman images
  16. 15 podman run httpd
  17. 16 podman run -it ubuntu
  18. 17 uname -r
  19. 18 docker ps
  20. 19 docker ps -a
  21. 20 podman run -it ubuntu
  22. 21 docker ps
  23. 22 history
  24. 23 podman info
  25. 24 sudo /root/countdown 12
  26. 25 podman images
  27. 26 podman inspect registry.access.redhat.com/ubi8/ubi
  28. 27 podman inspect registry.access.redhat.com/ubi8/ubi | less
  29. 28 sudo podman run -d httpd
  30. 29 podman ps
  31. 30 sudo podman ps
  32. 31 podman run -d registry.access.redhat.com/rhscl/httpd-24-rhel7
  33. 32 podman run -d -p 8000:80 nginx
  34. 33 podman port -a
  35. 34 firewall-cmd --add-port=8000/tcp --permanent
  36. 35 sudo firewall-cmd restart
  37. 36 sudo firewall-cmd --restart
  38. 37 sudo systemctl restart firewalld
  39. 38 podman run -d mysql
  40. 39 podman ps
  41. 40 podman ps -a
  42. 41 podman logs stupefied_almeida
  43. 42 podman run -d --name mydb -e MYSQL_ROOT_PASSWORD=password -e MYSQL_USER=bob -e MYSQL_PASSWORD=password -e MYSQL_DATABASE=book -p 3306:3306 mariadb
  44. 43 podman ps
  45. 44 podman exec mydb uname -r
  46. 45 podman exec -it relaxed_northcutt /bin/bash
  47. 46 podman exec -l cat /etc/redhat-release
  48. 47 sudo mkdir /webdir
  49. 48 podman run -d -v /webdir:/webdir:Z nginx
  50. 49 podman ps
  51. 50 podman exec -it great_beaver sh
  52. 51 podman rm great_beaver
  53. 52 podman rm great_beaver --force
  54. 53 sudo ls -ldZ /webdir
  55. 54 sudo -i
  56. 55 history
  57. 56 sudo chown student:student /webdir
  58. 57 podman run -d -v /webdir:/webdir:Z nginx
  59. 58 podman ps
  60. 59 podman ps -a
  61. 60 podman logs priceless_torvalds
  62. 61 sudo -lZd /webdir
  63. 62 sudo ls -lZd /webdir
  64. 63 sudo mkdir /webfiles
  65. 64 sudo chown student:student /webfiles
  66. 65 podman run -d -v /webfiles:/webfiles:Z nginx --name=take2
  67. 66 podman ps
  68. 67 sudo /root/countdown 113
  69. 68 sudo /root/countdown 13
  70. 69 history
  71. 70 podman run -d -v /webfiles:/webfiles:Z nginx
  72. 71 podman ps
  73. 72 exit
  74. 73 sudo -i
  75.  
  76.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement