If you build Linux with VirtualBox, you can put it in for the time being
# vi /etc/sysconfig/network-scripts/ifcfg-eth1
IPADDR=192.168.56.102
BOOTPROTO=static
ONBOOT=yes
Assuming that the proxy server is proxy.ex.co.jp, port 8080
# vi /etc/environment
http_proxy="http://proxy.ex.co.jp:8080/"
HTTP_PROXY="http://proxy.ex.co.jp:8080/"
https_proxy="https://proxy.ex.co.jp:8080/"
HTTPS_PROXY="https://proxy.ex.co.jp:8080/"
ftp_proxy="ftp://proxy.ex.co.jp:8080/"
FTP_PROXY="ftp://proxy.ex.co.jp:8080/"
Is there a network restart (or ifup / down)?
# service network restart
# yum -y install wget gzip perl lsof sysstat
yum -y nc bind-utils yum-utils ntc
# setenforce 0
# vi /etc/selinux/config
SELINUX=disabled
# yum -y install ntp
# vi /etc/ntp.conf
centos.Comment out the pool and put in NICT
server ntp.nict.jp
# chkconfig ntpd on
# service ntpd start
# ntpq -p
# date +"%Y-%m-%d %H:%M:%S %Z"
Java
https://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html#javasejdk
The URL may change. For the time being, the JDK download page Since you have to accept it manually, drop it on your terminal and then send SCP
# rpm -i jdk-8u191-linux-i586.rpm
Add path
# vi /etc/profile
export JAVA_HOME=/usr/java/default
export PATH=$PATH:$JAVA_HOME/bin
export
CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
I get angry that tool.jar is not found well
Ruby
# yum -y install ruby
If you want to use rbenv, refer to the official website
# yum -y install httpd
# chkconfig httpd on
# iptables -A INPUT -p tcp --sport 80 -j ACCEPT
# /etc/init.d/iptables restart
# service httpd start
# yum -y install mysql-server
# chkconfig mysqld on
# iptables -A INPUT -p tcp --sport 3306 -j ACCEPT
# /etc/init.d/iptables restart
# service mysqld start
# yum -y install net-snmp net-snmp-utils
# yum -y install httpd php php-mysql mysql wget
# chkconfig httpd on
# chkconfig mysqld on
# chkconfig --list | grep -e httpd -e mysql
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
#
# vi /etc/php.ini
Time zone"Asia/Tokyo"change to
# service httpd start
# service mysqld start
# vi /var/www/html/phpinfo.php
<?php
phpinfo();
?>
Create a suitable wordpress schema and user in mysql
# mysql -uroot -p
mysql > CREATE DATABASE wordpress
mysql > GRANT ALL PRIVILEGES ON wordpress.* TO wpuser@localhost
Drop the WordPress package somewhere in / tmp (check http://ja.wordpress.org/releases/ for the version)
# wget https://ja.wordpress.org/wordpress-4.9.8-ja.tar.gz
# tar zxf wordpress-4.9.8-ja.tar.gz
# cp -r wordpress /var/www/
# chown -R apache.apache /var/www/wordpress
# vi /etc/httpd/conf/httpd.conf
DocumentRoot"/var/www/wordpress"To
Directory tag attributes"/"To"/var/www/wordpress"To
Edit AllowOverride in the same tag to All
# service httpd restart
All you have to do is set the DB from the web screen
--Tomcat installation, Apache integration ~~ I may not do it recently ~~ --Python installation --ZCS (The latest one is sure to make a repository and yum, but the setup should be a shell anyway)