2020年8月4日火曜日

SeversMan VPSにCentOS 7にした

VPS借りたままでほぼ活用してないのがあったので、CentOS 7をセットアップしなおした。

前にやったときの設定を見つつ、sshの設定を行う。

Localeの設定は、  /etc/sysconfig/i18n ではなく、  /etc/locale.conf に変わっていた。

管理画面用に↓が動くようになっているのでそれを止める。
python /usr/local/share/ajaxterm/ajaxterm.py --port=8022 --uid=nobody
systemd disableで止められなかったのでファイルを削除する。
rm /etc/systemd/system/multi-user.target.wants/ajaxterm.service
rebootしてajaxterm.pyがうごかなくなったことを確認。

httpdもいらないので止めておく
 systemd disable httpd
rm '/etc/systemd/system/multi-user.target.wants/httpd.service'
まずはそんな感じで。