Tera Term で Rocky9/RHEL9 にログインできないの解決方法
環境
RHEL9.2
Rocky9
現象
Tera Term で Rocky9/RHEL9 にログインできない
エラーログ
AWS入門 AWS CLI(AWS Command Line Interface)をインストールする方法
環境
Windows10 64bit
AWS CLI
操作方法
1.AWS CLIのインストールを行う
参考
2.Windows10 コマンドプロンプトを起動します。
SSH-agent Could not open a connection to your authentication agentの解決方法
環境
RHEL8.6
1.SSH-agentの状態を確認します
$ ssh-add -l
Could not open a connection to your authentication age ...
Serverspec ユーザとグループの存在を確認するサンプル
環境
Serverspec
RHEL8.6
構文
describe group('グループ名') do it { should exist }endユーザやグループの存在を確認するには、grou ...
Serverspec プロセスが起動していることをテストする
環境
Serverspec
RHEL8.6
構文
describe process("プロセス名t") do it { should be_running }endprocessを利用してプロセ ...
Serverspec ディレクトリの存在をテストするサンプル
環境
Serverspec
RHEL8.6
構文
describe file('ディレクトリ名') do it { should be_directory } it { should be_owned ...Serverspec 指定パッケージの存在をチェックするサンプル
環境
Serverspec
RHEL8.6
構文
describe package(‘パッケージ名’) do
it { should be_installed.by( ...
RHEL8 Serverspecのインストールのサンプル
環境
RHEL8.6
操作方法
1.Serverspecのインストールを行う
2.Serverspec初期セットアップを行う
serversp ...
Server should_notの使い方のサンプル
環境
AlmaLinux release 9.2 (Turquoise Kodkod)
Serverspec
構文
describe service('サービス名') do it { should_n ...Serverspec サービスの状態を検証するサンプル
環境
AlmaLinux release 9.2 (Turquoise Kodkod)
Serverspec
構文
describe service('サービス名') do it { should b ...Serverspec cronの設定を検証するサンプル
環境
RHEL8.6
Serverspec
構文
describe cron do it { should have_entry(xxxx).with_user('ユーザー名')endエント ...
RHEL8 Serverspecを利用する方法
環境
Serverspec
RHEL8.6
操作方法
1.Serverspecのインストールを行います
$ gem install serverspec
2.Serverspec ...
Serverspec host_inventoryの使い方のサンプル
環境
Severspec
RHEL8.6
操作方法
1.host_inventory
ホスト名を取得します。
2.host_inventory
デバイスパスで割り当てられ ...
Serverspec Locale、Timezoneのテストのサンプル
環境
Serverspec
RedHat 8.6
書式
describe locale(‘コマンド’) do
its(<対象>) { should <条件> <値> ...
RHEL8.6 無効にするサービスのサンプル
環境
RHEL8.6
サービス詳細確認
systemctl cat <service_name>
systemctl help <service_name>
概要 ...
Serverspec timestampの確認サンプル
環境
Serverspec
RedHat 8.6
書式
it { should <条件> }
its(<対象>) { should <条件> <値> }
「テスト条件」は対象とするリ ...
Serverspec swapファイルの確認サンプル
環境
Serverspec
RedHat 8.6
書式
it { should <条件> }
its(<対象>) { should <条件> <値> }
「テスト条件」は対象とするリ ...
Serverspec テストスクリプトの文法のサンプル
環境
Serverspec
RedHat 8.6
操作例
ファイル名 httpd_spec.rb
1.spec/spec_helper.rbを実行する
require ‘ ...