Research
apache (httpd) web server setup on ppc64le server
Shakeratto
2019. 4. 23. 10:23
-
docker pull httpd
-
docker run -i -t -h [container name] --name --dns 8.8.8.8 -d -v /data:/data -p [external port:port] httpd /bin/bash
-
docker ps -a
-
docker commit [user]/[backup image name]
-
docker images
-
docker attach [container name]
-
apt-get update
-
apt-get insatll vim
-
Set ServerName
-
vi /usr/local/apache2/conf/httpd.conf
-
ServerName www.example.com:80
-
--> ServerName [IP]:[Port]
-
apachectl -k graceful
-
Test
-
/usr/local/apache2/htdocs/ (Any http files upload to here)
-
apt-get install openssh-server
-
vi /etc/ssh/sshd_config
-
Port 22
-
PermitRootLogin prohibit-.. -> yes
-
service ssh restart
-
apt-get install sudo
-
passwd
-
[Password]
-
Check ssh connection using putty