サーバー起動スクリプトにて、起動時にノード名、パスワードを指定する
#!/bin/bash
/usr/bin/hostnamectl set-hostname ute4004
ROOT_PASSWORD='任意のパスワード'
SALT=$(/usr/bin/uuidgen| /usr/bin/tr -d '-')
/usr/sbin/usermod -p $(/usr/bin/perl -e 'print crypt(${ARGV[0]}, ${ARGV[1]})' ${ROOT_PASSWORD} ${SALT}) ro
NIFCLOUDへNFSの設定
# yum install -y rpcbind nfs-utils
# mount -t nfs4 10.100.117.164:/ /nas
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 392716 0 392716 0% /dev
tmpfs 408092 0 408092 0% /dev/shm
tmpfs 408092 5744 402348 2% /run
tmpfs 408092 0 408092 0% /sys/fs/cgroup
/dev/sda3 28767516 1973900 26793616 7% /
/dev/sda1 518816 214316 304500 42% /boot
tmpfs 81616 0 81616 0% /run/user/0
10.100.117.164:/ 103076864 61440 102999040 1% /nas
Wordpressのインストール
https://qiita.com/ikenyal/items/b599d7a29d884e67b3a9
https://qiita.com/ikenyal/items/cdf5b0722f91acc75286
Hostnameの変更
Hostnameを変更して、プロンプトにhostnameを表示させたい
[root@localhost ~]# hostnamectl set-hostname ute4002
/etc/hostnameファイルの編集
su -l root