☁️くもをもくもくまなぶ

クラウドコンピューティングサービスの学んだことを中心につらつらと書いています

LiteSpeedを使ってみる

きっかけ

AWS Hands-on for Beginners「AWS Systems Managerを使ったサーバ管理はじめの一歩編」を実施してみたにて、

EC21台、常時起動して運用の経験積まないとダメな気がしてきました。
何を載せようかな…

と、AWSを使って継続して使ってみる題材を探していました。

LiteSpeedというWeb Serverについて耳にして、
Apache(httpd)、Apache Tomcat、nginxしか知らないので、
どういったものか触ってみることにしました。

LiteSpeedについて

https://www.litespeedtech.com/

HTTP/3

HTTP/3は、HTTP mapping over QUICのことです。
QUICは、Googleのエンジニアが策定したUDPベースの2021年5月に標準化されたプロトコルです。

環境

実際にやってみた

OSの準備

https://docs.aws.amazon.com/ja_jp/systems-manager/latest/userguide/agent-install-centos.html

sudo dnf install -y https://s3.region.amazonaws.com/amazon-ssm-region/latest/linux_amd64/amazon-ssm-agent.rpm

sudo dnf install -y https://s3.ap-northeast-3.amazonaws.com/amazon-ssm-ap-northeast-3/latest/linux_amd64/amazon-ssm-agent.rpm

ssm.ap-northeast-3.amazonaws.com

$ sudo dnf install -y <https://s3.ap-northeast-3.amazonaws.com/amazon-ssm-ap-northeast-3/latest/linux_amd64/amazon-ssm-agent.rpm>
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:07:16 ago on Thu Mar 24 13:50:23 2022.
amazon-ssm-agent.rpm                                                                                                                                  91 MB/s |  25 MB     00:00
Dependencies resolved.
=====================================================================================================================================================================================
 Package                                         Architecture                          Version                                     Repository                                   Size
=====================================================================================================================================================================================
Upgrading:
 amazon-ssm-agent                                x86_64                                3.1.1080.0-1                                @commandline                                 25 M

Transaction Summary
=====================================================================================================================================================================================
Upgrade  1 Package

Total size: 25 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: amazon-ssm-agent-3.1.1080.0-1.x86_64                                                                                                                        1/1
  Preparing        :                                                                                                                                                             1/1
  Running scriptlet: amazon-ssm-agent-3.1.1080.0-1.x86_64                                                                                                                        1/1
  Running scriptlet: amazon-ssm-agent-3.1.1080.0-1.x86_64                                                                                                                        1/2
  Upgrading        : amazon-ssm-agent-3.1.1080.0-1.x86_64                                                                                                                        1/2
  Running scriptlet: amazon-ssm-agent-3.1.338.0-1.x86_64                                                                                                                         2/2
  Cleanup          : amazon-ssm-agent-3.1.338.0-1.x86_64                                                                                                                         2/2
  Running scriptlet: amazon-ssm-agent-3.1.1080.0-1.x86_64                                                                                                                        2/2
  Running scriptlet: amazon-ssm-agent-3.1.338.0-1.x86_64                                                                                                                         2/2
  Verifying        : amazon-ssm-agent-3.1.1080.0-1.x86_64                                                                                                                        1/2
  Verifying        : amazon-ssm-agent-3.1.338.0-1.x86_64                                                                                                                         2/2

Upgraded:
  amazon-ssm-agent-3.1.1080.0-1.x86_64

Complete!
$
LiteSpeedのインストール
sudo yum -y groupinstall base
sudo yum -y groupinstall development
sudo yum -y groupinstall network-tools
sudo yum -y install epel-release

sudo yum install -y wget curl

wget https://www.litespeedtech.com/packages/6.0/lsws-6.0.8-ent-x86_64-linux.tar.gz

https://openlitespeed.org/kb/install-ols-from-litespeed-repositories/

sudo rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el8.noarch.rpm

sudo rpm -Uh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el8.noarch.rpm

  • v
-v, --verbose provide more detailed output

まとめ

結果的にはうまくいきませんでした。。難しい。。

参考