-------------------------
ORCAサーバ復旧手順
orca01.labo.mw.kawasaki-m.ac.jp
-------------------------
【現象】
間違えてorca01,03,05サーバをUbuntu 10.10にアップグレードしてログインできなくなった。
orca02は電源異常ですでに動いていなかった
orca04はアップグレードしなかったので生き残った
【対応】
orca02のHDDをorca05と交換してorca02を復旧(orca05のHDDは棚にしまう)
LANボードも交換することによって復旧
orca01はクリーンインストール
orca01は雑誌の付録のUbuntu10.04(すべて入っている?)
orca03はインストールできなかった
orca03とorca05はPCを廃棄済みのシステム管理実験で使っているPCに交換した
【orca01】
①インストール後,ネットワークの設定
②aptのリポジトリファイルを修正
# vi /etc/apt/sources.list
deb http://old-releases.ubuntu.com/ubuntu lucid main restricted universe
deb http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted universe
deb http://old-releases.ubuntu.com/ubuntu lucid-security main restricted universe
apt-get -y update
apt-get -y upgrade
http://smdn.jp/softwares/ubuntu/initialconfig_lucid_server/#section.4.1
③sshをインストール
aptitude -y install ssh
/etc/init.d/ssh restart
これでTeratermで接続できる
④Telnetインストール
sudo apt-get install xinetd telnetd
sudo vi /etc/hosts.allow
in.telnetd : 127.0.0.1 172.16.0.0/16
sudo vi /etc/xinetd.d/telnet
service telnet
{
disable = no
flags = REUSE
socket_type = stream
user = telnetd
wait = no
server = /usr/sbin/in.telnetd
server_args = -h
only_from = 172.16.0.0/16 127.0.0.1
log_on_failure += USERID
}
sudo service xinetd restart
⑤vsftpのインストール
sudo aptitude -y install vsftpd
sudo vi /etc/vsftpd.conf
sudo vi /etc/vsftpd.chroot_list
sudo service vsftpd restart
https://www.server-world.info/query?os=Ubuntu_10.04&p=ftp
ユーザの作成
adduser user01a
password:network
ホームディレクトリにpublic_htmlを作成する。
mkdir public_html
⑥apache2のインストール
https://www.server-world.info/query?os=Ubuntu_10.04&p=httpd&f=1
下記を利用できるようにする
PHP
UserDir
SSL
⑦メールサーバのインストール
⑧MySQLサーバインストール
⑨phpmyadminインストール
http://mixeduperic.com/ubuntu/how-to-install-phpmyadmin-on-ubuntu-1004-lts-server.html
リンクテーブルを処理するための追加機能が無効になっています。
→ http://kuniharumaki.com/2010/06/10/2336/phpmyadmin-setup.html
⑩時計合わせ
sudo ntpdate -v ntp.nict.jp
0 件のコメント:
コメントを投稿