Common Settings for My Server
OS | Version |
CentOS | 5.x, 6.x, 7.x |
# cd /usr/local/src/
# curl -L https://raw.github.com/nouphet/setting_server_env/master/setting_server_env_light.sh | bash
yum -y install ntp vim fping wget curl git
wget --no-check-certificate https://raw.github.com/nouphet/setting_server_env/master/setting_server_env_light.sh
or
yum -y install ntp vim fping wget curl git && wget --no-check-certificate https://raw.github.com/nouphet/setting_server_env/master/setting_server_env_light.sh
グローバルIPを確認する方法
$ curl http://dyn.value-domain.com/cgi-bin/dyn.fcg?ip && echo ""
Linuxのローカルタイムを日本時間に変更する方法
# mv /etc/localtime /etc/localtime.orig; ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
or
# mv /etc/localtime /etc/localtime.orig; cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime