sudo hostnamectl set-hostname hogeserver.tar3.net
sudo vim /etc/hostname hogeserver.tar3.net
sudo yum update
sudo yum install epel-release sudo yum install bind-utils net-tools vim rsync ntp wget openssh-server
nmtui
ip addr show
systemctl restart NetworkManager
service network-manager restart
pool 2.centos.pool.ntp.org iburst pool 3.centos.pool.ntp.org iburst
server (ntpサーバーホスト名1) iburst server (ntpサーバーホスト名2) iburst
sudo systemctl restart chronyd.service
sudo chronyc -a makestep
sudo chronyc tracking
chronyc sources
sudo systemctl status chronyd
server ntp.tar3.net
systemctl stop firewalld.service systemctl disable firewalld.service
Enforcing ← SELinux有効
Permissive ← SELinux無効
SELINUX=disabled ← システム起動時にSELinuxを無効化
sudo systemctl status vmware-tools.service
root: hoge@nifty.com echo test | mail root
yum install mod_ldap -y
AuthzLDAPAuthoritative on
#AuthzLDAPAuthoritative on
systemctl restart httpd
sudo yum install httpd
ip addr show ip a
export http_proxy="http://proxy.hoge.net:8080" export https_proxy=$http_proxy export ftp_proxy=$http_proxy export no_proxy="127.0.0.1, 192.168.0.0/16, localhost"
sudo chmod +x /etc/profile.d/proxy.sh
sh /etc/profile.d/proxy.sh
[base] name=CentOS-$releasever - Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ baseurl=http://vault.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #released updates [updates] name=CentOS-$releasever - Updates #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ baseurl=http://vault.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ baseurl=http://vault.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ baseurl=http://vault.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7