Shakerato

apache (httpd) web server setup on ppc64le server 본문

Research

apache (httpd) web server setup on ppc64le server

Shakeratto 2019. 4. 23. 10:23
  1. docker pull httpd

  2. docker run -i -t -h [container name] --name  --dns 8.8.8.8 -d -v /data:/data -p [external port:port] httpd /bin/bash

  3. docker ps -a

  4. docker commit   [user]/[backup image name]

  5. docker images

  6. docker attach [container name]

  7. apt-get update

  8. apt-get insatll vim

  9. Set ServerName

    1. vi /usr/local/apache2/conf/httpd.conf

    2. ServerName www.example.com:80

    3. --> ServerName [IP]:[Port]

  10. apachectl -k graceful

  11. Test

    1. http://[IP]:[External Port]/

  12. /usr/local/apache2/htdocs/ (Any http files upload to here)

  13. apt-get install openssh-server

  14. vi /etc/ssh/sshd_config

    1. Port 22

    2. PermitRootLogin prohibit-.. -> yes

  15. service ssh restart

  16. apt-get install sudo

  17. passwd

    1. [Password]

  18. Check ssh connection using putty

Comments