220420
6917 ワード
空き地
最大20分間の動画配信
3分ごとに発表されます
ワープロがあります.
-dbサーバに関連するビジュアルセクション.
鍵の作成と割り当て
鍵をNATにアップロード
cd %UserProfile%\.ssh
:ユーザーフォルダ->sshフォルダscp my-key4.pem [email protected]:/root/.ssh/my-key4.pem
: my-key4.アップロードpem
各サーバに割り当てる
公開鍵の割り当て
ssh-copy-id
ssh-copy-id -i authorized_keys.pub [email protected]

ssh-copy-id -i authorized_keys.pub [email protected]

ssh-copy-id -i authorized_keys.pub [email protected]

プライベート鍵の割り当て
my-key4.pem
は各PCに存在する必要があるため、SAMBAを介して空きがある.

サーバ実装
SAMBA

DATABASE

NFS


df -h
を使用して検証すると、NFSサーバが/root/share
に接続されていることがわかります.vi /etc/fstab
:次に、自動マウントを編集して設定を追加します.viを必要とせず、
echo "172.31.0.100:/share /root/share nfs defaults 0 0"
>/etc/fstabをこのように追加することができる.
講義
Wordpress
Wordpressのインストール(web 01、web 02)
yum install -y httpd php php-mysql php-gd php-mbstring wget unzip
:Wordpressにインストールします.-httpdがインストールされています.
-アクティビティ:重複作業を回避するためにインストールされている(同じタスク)をスキップします.(Ansible)
-php:Wordpress phpスクリプトを使用します.
-php-mysql:mysql使用可能モジュール
-php-gd、php-mbstring:gdおよびmbstring使用可能モジュール
-Minimal環境にインストールします.
wget
は存在しません.-インストール、
Unzip
も存在しないためcd /var/www/html
-このパスは、httpをインストールするときに生成されるフォルダです.mv index.html index.html.bak
-インデックス・ファイルを削除せずにバックアップ・ファイルに置き換えます.wget https://ko.wordpress.org/wordpress-4.8.2-ko_KR.zip
-ハングルバージョンのwordpressファイルをダウンロードunzip wordpress-4.8.2-ko_KR.zip
-解凍して解凍するls
入力コマンドはwordpressフォルダを生成します.mv wordpress/* .
-wordpressのすべてのファイル(*
)を現在のパス(.
)にインポートします.ls
コマンドを入力するとファイルが多くなります.chown -R apache:apache *
-chown
:所有権の変更コマンド-R
:Recursive,再帰変更apache:apche *
:
apacheユーザグループ.*
すべてのファイルと、すべてのフォルダとその内部のすべてのファイルを置き換えます.systemctl enable --now httpd
-httpdイニシエータとイニシエータの登録systemctl restart --now httpd
を実行します.NAT


エラー

-NATにMysql:
yum install -y mysql
をインストール-
mysql -h 172.31.0.108 -u wpuser -p
:パスワードを入力するためにログイン-アカウントに問題はありません.
-HAproxyでWebサーバが交換中のためエラーが発生しました.
-
vi /etc/haproxy/haproxy.cfg
:Cookieを1 m以上に置き換えてみます.-だからindex.htmlがある部分も
chown
します.-
chown -R apache:apache /var/www/html
を使用して作業します.
インストールの進捗状況



NATファイアウォールの設定
firewall-cmd --permanent --add-service=http --zone=internal
:各サーバweb 01、web 02、dnsがNATでWordpressに接続するには、内部ファイアウォールを開く必要がありますfirewall-cmd --reload
:設定後に再ロードします.エラー
正しいアカウント情報を使用してログインしようとしても、ログイン後はプロセスに入りません.

プラグインの確認
-沈黙は金だ

- hello.phpは
Louis Armstrong
で作成された単純なプラグインではありません.これは希望と世代を二つの言葉に要約したものだ.
Web 01とWeb 02のインタフェースに合わせます.
wp-config.php:各Webサーバで一致すると、wordpressは2つのサーバ上のwordpressタスクに一致します.
web 02のwp-config.phpは最新バージョンなので、web 02からweb 01に送信します.
また、NFSサーバを使用してLinux間でファイルを共有することもできます.
-web 01のwp-config.phpのバックアップを作成します.

-Web 02からNFS共有ファイル

-web 01でwp-config.php共有の確認

<br>
-接続できる!
Reference
この問題について(220420), 我々は、より多くの情報をここで見つけました https://velog.io/@jo1132/220420テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol