CentOS作業 のバックアップソース(No.5)
※※このサイトは2012年頃より更新を停止しています。※※
- バックアップ一覧
- 差分 を表示
- 現在との差分 を表示
- バックアップ を表示
- CentOS作業 へ行く。
- 1 (2007-05-04 (金) 18:43:01)
- 2 (2007-05-05 (土) 08:14:44)
- 3 (2007-05-05 (土) 14:01:01)
- 4 (2007-05-09 (水) 08:56:46)
- 5 (2007-05-09 (水) 13:24:33)
- 6 (2007-06-22 (金) 12:20:20)
- 7 (2007-06-22 (金) 12:20:20)
- 8 (2007-06-22 (金) 12:20:20)
- 9 (2007-06-22 (金) 12:20:20)
- 10 (2007-06-22 (金) 12:20:20)
- 11 (2007-06-22 (金) 12:20:20)
*VPSサービスにて 2007年5月2日、とあるVPSレンタルサービスで仮想OSを借りた。 OSはCentOS4。環境構築作業をいつでも再現できるようにメモしておく。 #comment #hr #contents *環境 OS : CentOS 4.3(初期状態) メモリ : 128MB ディスク: 5GB **初期状態からすること ***環境チェック # cat /etc/redhat-release # df # mount # env ***rootの情報変更 # passwd root # vi .bash_profile HISTSIZE=50000 export HISTSIZE ***yumでアップデート # yum check-update # yum update # yum clean all ***ユーザ追加 # adduser username # passwd username Changing password for user username. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully. ***sshdのコンフィグ変更 # vi /etc/ssh/sshd_config #### 変更 #Port 22 Port 10022 # まぁつまりデフォルトとは別の任意の番号に変更するってこと #PermitRootLogin yes PermitRootLogin no #### 追加 AllowUsers username # 特定のユーザだけSSHログインを許可する # service sshd restart ***/etc/hosts.allow や /etc/hosts.deny の編集 特定の端末からのみSSHを許可するようにしたい場合、手っ取り早く下記で指定する。 # vi /etc/hosts.deny sshd: ALL # vi /etc/hosts.allow sshd: hostname.domainname ***各種ユーティリティのインストール # yum install nmap cpio diffutils file system-config-date とりあえず。必要に応じて追加してきゃいいかな。 ***ホスト名とかを設定 # cp -a /etc/hosts /etc/hosts.ORIGINAL # cp -a /etc/sysconfig/network /etc/sysconfig/network.ORIGINAL # vi /etc/sysconfig/network NETWORKING="yes" GATEWAY="123.123.123.1" HOSTNAME="myhostname" # vi /etc/hosts 127.0.0.1 myhostname localhost localhost.localdomain 123.123.123.50 myhostname.mydomain.net # hostname myhostname # shutdown -r now 続きは随時追記します。(2007-05-04 18:41)