sandervanvugt

RHCSA nov20 day4 part2

Nov 16th, 2020
142
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. 8 sudo -i
  9. 9 podman run -d nginx
  10. 10 podman login registry.redhat.io
  11. 11 sudo vim /etc/containers/registries.conf
  12. 12 podman pull registry.access.redhat.com/ubi8/ubi:latest
  13. 13 podman ps
  14. 14 podman images
  15. 15 podman run httpd
  16. 16 podman run -it ubuntu
  17. 17 uname -r
  18. 18 docker ps
  19. 19 docker ps -a
  20. 20 podman run -it ubuntu
  21. 21 docker ps
  22. 22 history
  23. 23 podman info
  24. 24 sudo /root/countdown 12
  25. 25 podman images
  26. 26 podman inspect registry.access.redhat.com/ubi8/ubi
  27. 27 podman inspect registry.access.redhat.com/ubi8/ubi | less
  28. 28 sudo podman run -d httpd
  29. 29 podman ps
  30. 30 sudo podman ps
  31. 31 podman run -d registry.access.redhat.com/rhscl/httpd-24-rhel7
  32. 32 podman run -d -p 8000:80 nginx
  33. 33 podman port -a
  34. 34 firewall-cmd --add-port=8000/tcp --permanent
  35. 35 sudo firewall-cmd restart
  36. 36 sudo firewall-cmd --restart
  37. 37 sudo systemctl restart firewalld
  38. 38 podman run -d mysql
  39. 39 podman ps
  40. 40 podman ps -a
  41. 41 podman logs stupefied_almeida
  42. 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
  43. 43 podman ps
  44. 44 podman exec mydb uname -r
  45. 45 podman exec -it relaxed_northcutt /bin/bash
  46. 46 podman exec -l cat /etc/redhat-release
  47. 47 sudo mkdir /webdir
  48. 48 podman run -d -v /webdir:/webdir:Z nginx
  49. 49 podman ps
  50. 50 podman exec -it great_beaver sh
  51. 51 podman rm great_beaver
  52. 52 podman rm great_beaver --force
  53. 53 sudo ls -ldZ /webdir
  54. 54 sudo -i
  55. 55 history
  56. 56 sudo chown student:student /webdir
  57. 57 podman run -d -v /webdir:/webdir:Z nginx
  58. 58 podman ps
  59. 59 podman ps -a
  60. 60 podman logs priceless_torvalds
  61. 61 sudo -lZd /webdir
  62. 62 sudo ls -lZd /webdir
  63. 63 sudo mkdir /webfiles
  64. 64 sudo chown student:student /webfiles
  65. 65 podman run -d -v /webfiles:/webfiles:Z nginx --name=take2
  66. 66 podman ps
  67. 67 sudo /root/countdown 113
  68. 68 sudo /root/countdown 13
  69. 69 history
  70. 70 podman run -d -v /webfiles:/webfiles:Z nginx
  71. 71 podman ps
  72. 72 exit
  73. 73 sudo -i
  74.  
  75.  
Advertisement
Add Comment
Please, Sign In to add comment