#author("2024-01-29T03:11:39+00:00","","")
[[奥原教授]]
#author("2025-03-18T02:58:14+01:00","","")
[[奥原 教授]]

** Login [#m80b3583]

master server
ssh root@133.55.115.238
pw: pu-toyama
mac:F4-03-43-4E-66-25

slave1 
ssh root@133.55.115.239
pw: y!AS6JFqASG5fpR)
mac:F4-03-43-57-AE-65

slave2
ssh root@133.55.115.240
pw: *D$F3QR)VrPRdgU%
mac:F4-03-43-57-CE-F1

ssh iie.lab.tpu@133.55.115.240
pw: 8*NJ9!$a%cKm

** ファイル転送 [#a7a7fccd]

SFTP
133.55.115.238

sudo systemctl restart httpd

https://dic515s2.pu-toyama.ac.jp/

** portの開け方 [#r06387ec]

firewall-cmd --permanent --add-service=http
firewall-cmd --reload

testing.htmlを消したら,またリスタート
sudo systemctl restart httpd

/etc/httpd/conf

ServerName dic515mas.pu-toyama.ac.jp:80

DocumentRoot "/var/www/html"

** PukiWiki [#k64e9189]

var/www/html/

http://133.55.115.238/IIE/IIE.IS.20210325.toyama.pu/lab_log/wiki_lab.php

SELinux 無効化
$ sudo setenforce 0

IIEの直下で以下で全変換
chown -R apache:apache ./

http://dic515mas.pu-toyama.ac.jp/IIE/index.html

**SSLの証明書の更新(文責:長瀬) [#wbe0ee72]
&color(,#ff0000){COLOR(#ffffff):サイトが表示されなくなった場合(保護されていない通信のエラー)の解決法};&br;
1.自分のPCのコマンドプロンプトで「ssh iie.lab.tpu@133.55.115.240」と入力しサーバにリモートアクセス&br;
2.「sudo su -」と入力しrootに入る&br;
3.「cd /etc/httpd/conf」と入力し目当てのディレクトリに飛ぶ&br;
4.「vim httpd.conf」と入力しファイルの書き込みモードを開く&br;
5.#Listen 80 という記述を探し, 「#」のみを消去する(80番ポートにアクセス権を開く)&br;
※Listen 80 がListen 81になっていたらListen80に書き換える&br;
6.Escボタンを押した後, 「:wq」と入力しEnter(書き込みの保存)&br;
7.「sudo service httpd restart」と入力する(Apacheの再起動)&br;
8.「certbot renew --post-hook "systemctl reload httpd.service"」と入力しSSLの証明書の更新を行う&br;
9.「vim httpd.conf」と入力しファイルの書き込みモードを開く&br;
10.Listen 80 を #Listen 80 と書き換える(80番ポートのアクセス権を閉じる)&br;
※Listen 81 から Listen 80に書き換えた場合はListen 81に戻す。(81番ポートのアクセス権は閉じなくてよい)&br;
11.Escボタンを押した後, 「:wq」と入力しEnter(書き込みの保存)&br;
12.「sudo service httpd restart」と入力する(Apacheの再起動)&br;
13.「exit」と入力しサーバのリモート操作を終了する&br;
&br;
(注)パスワードの問い合わせは長瀬(もしくはその引継ぎ者)まで

Pass:8*NJ9!$a%cKm

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS