Hetzner 2016 Log: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
*yum install wget | *yum install wget | ||
*wget http://mysqltuner.pl/ -O mysqltuner.pl | *wget http://mysqltuner.pl/ -O mysqltuner.pl | ||
*Yum install nmap |
Revision as of 02:35, 1 June 2016
Tue May 31, 2016
http://www.tecmint.com/things-to-do-after-minimal-rhel-centos-7-installation/6/
- Log in to Hetzner -
- Tom - SSH to hetzner
- SSH root@ not recommended. Log in, then login as root.
- ssh my login -p portnumber name @138.201.84.223
- Port number is for safety, so it's not 22, the usual port
- Reliable Package Manager - RPM -
- rpm -qa | sort
- sudo su - to operate as root
- su root - needs root password -
- rpm -qa | grep webmin - searches if webmin is installed
- yum install perl-Net-SSLeay
- yum update
- yum upgrade
- yum install firewalld
- systemctl enable firewalld
- systemctl start firewalld
- yum install httpd
- systemctl enable httpd.service
- systemctl start httpd.service
- firewall-cmd --add-service=http
- firewall-cmd --add-port=80/tcp –permanent
- systemctl stop firewalld
- firewall-cmd --add-port=32415/tcp
- firewall-cmd --reload
- yum install links - text web browser
- links http://127.0.0.1/
- yum install php
- systemctl restart httpd.service
- echo -e "<?php\nphpinfo();\n?>" > /var/www/html/phpinfo.php - this wrote one
- links http://127.0.0.1/phpinfo.php - i ran the php script
- yum install mariadb-server mariadb
- systemctl enable mariadb.service
- systemctl start mariadb.service
- yum install wget
- wget http://mysqltuner.pl/ -O mysqltuner.pl
- Yum install nmap