EC2

From Dave's wiki
Jump to navigation Jump to search
#https://access.redhat.com/solutions/9934
#https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-yum.html
#check for update
sudo yum check-update
#update all packages and dependencies
sudo yum update
#searching
sudo yum search screen
sudo yum list readline\*
#listing package groups
sudo yum groups summary
sudo yum group list ids
#http://www.cyberciti.biz/faq/centos-rhel-7-redhat-linux-install-gcc-compiler-development-tools/
sudo yum group install "Development Tools"

R

sudo yum install readline-devel
./configure --with-x=no
sudo yum install java-1.8.0-openjdk
sudo yum install java-1.8.0-openjdk-devel
sudo yum install java-1.8.0-openjdk-headless

Web server

Root is at /var/www/html

Log files are in /var/log/httpd/

sudo yum group install "Basic Web Server"
#https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/s1-apache-startstop.html
apachectl start
apachectl stop
apachectl restart
apachectl status

#https://thevagabondgeek.com/how-to-start-apache-at-startup-on-centos-or-red-hat-enterprise-linux-using-chkconfig/
chkconfig httpd on
chkconfig --list
chkconfig --list httpd

cat /etc/httpd/conf/httpd.conf

Others

#http://www.gnutls.org/
curl -O ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-3.3.14.tar.xz