Opensourcetechブログ

OpensourcetechによるNGINX/Kubernetes/Zabbix/Neo4j/Linuxなどオープンソース技術に関するブログです。

LifeSpeed(Webサーバ)を使ってみる

 

こんにちは、LinuCエバンジェリストこと、鯨井貴博@opensourcetechです。

 

先日発表されたWebサーバのトレンドで、LifeSpeedなるものが伸びていることがわかったので、ちょっと使ってみようと思います。

f:id:opensourcetech:20200606002728p:plain

f:id:opensourcetech:20200606002751p:plain

https://w3techs.com/technologies/history_overview/web_server

 

 

 

LifeSpeed Web Serverに関する詳細は、以下。

f:id:opensourcetech:20200606003226p:plain

https://www.litespeedtech.com/open-source

https://openlitespeed.org/#install

https://docs.litespeedtech.com/cloud/docker/openlitespeed/

 

 

インストール方法を見ると、一番お手軽そうなDockerコンテナを使います。

f:id:opensourcetech:20200606003321p:plain

 



docker環境の構築は省略しますが、以下にある流れに沿えば、使えそうです。

https://docs.litespeedtech.com/cloud/docker/openlitespeed/

※今回は、Docker Toolboxを使っています。

 

コンテナイメージの取得

$ docker pull litespeedtech/openlitespeed:latest
latest: Pulling from litespeedtech/openlitespeed
23884877105a: Pull complete bc38caa0f5b9: Pull complete 2910811b6c42: Pull complete 36505266dcc6: Pull complete a186aa06e683: Pull complete 67e667ad19bd: Pull complete 25c7a3dbfe77: Pull complete d5afc41285c2: Pull complete 7e9175c4befb: Pull complete 8d41192e6bbf: Pull complete 98f65acd26a5: Pull complete bf010f824646: Pull complete 4aaed8e38077: Pull complete d2b1c5eb3351: Pull complete a6bcff22cb52: Pull complete bb8d53adde77: Pull complete f1529c2e933f: Pull complete 7c9642d68270: Pull complete f9cf3850e2f1: Pull complete 5a0c723d7337: Pull complete 470baa787136: Pull complete Digest: sha256:7365d319dc6f2b700bb56c3950f8e1294732b971c52a451702c786b13ade806c
Status: Downloaded newer image for litespeedtech/openlitespeed:latest
docker.io/litespeedtech/openlitespeed:latest

$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
litespeedtech/openlitespeed latest bed9ed4e6221 43 hours ago 613MB
test_nginx2 latest d08b0c4f638f 5 days ago 321MB
nginx latest 9beeba249f3e 2 weeks ago 127MB
centos latest 470671670cac 4 months ago 237MB

 

 コンテナイメージからのコンテナ起動

$ docker run -d --name openlitespeed -p 7080:7080 -p 80:80 -p 443:443 -it litespeedtech/openlitespeed:latest
06ea9cb7878db46dc61ea1c6454ef691ad92d8a1c765ee09c00e479e149caa0b

$ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
06ea9cb7878d litespeedtech/openlitespeed:latest "/entrypoint.sh" 9 seconds ago Up 7 seconds 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:7080->7080/tcp openlitespeed

 

コンテナ内部で操作

$ docker exec -it openlitespeed /bin/bash
root@06ea9cb7878d:/var/www/vhosts# echo '<?php phpinfo();' > localhost/html/index.php

 

作成したコンテンツファイル(index.php)へのアクセス

f:id:opensourcetech:20200606004417p:plain

 

 管理画面(TCP7080)へのアクセス

f:id:opensourcetech:20200606004831p:plain

 

管理アクセス用のアカウント作成

root@06ea9cb7878d:~# /usr/local/lsws/admin/misc/admpass.sh

Please specify the user name of administrator.
This is the user name required to login the administration Web interface.

User name [admin]: admin

Please specify the administrator's password.
This is the password required to login the administration Web interface.

Password:
Retype password:
Administrator's username/password is updated successfully!

 

管理画面 Dashboard

f:id:opensourcetech:20200606005239p:plain

 

管理画面 Server Configuration

f:id:opensourcetech:20200606005434p:plain

 

管理画面 Listeners

f:id:opensourcetech:20200606005656p:plain

 

管理画面 Virtual Hosts

f:id:opensourcetech:20200606005719p:plain

 

静的コンテンツ(index.html)の配置

※/var/www/vhosts/localhost/htmlが公開ディレクトリ

root@06ea9cb7878d:/var/www/vhosts# echo "LifeSpeed WebServer Test" > localhost/html/index.html

 

作成した静的コンテンツ(index.html)へのアクセス

f:id:opensourcetech:20200606010316p:plain

 

 

他のWebサーバ(Apacheとか、nginxとか、IISとか)使ったことある方は、

このあたりに設定あって、ここのファイルを置けばいいのかなどなんとなくいけそうな予感。

 

 

 

アフィリエイトのアクセストレード

 

 

 

 

 

 

www.slideshare.net

github.com

www.facebook.com

twitter.com

www.instagram.com

 

 

にほんブログ村 IT技術ブログ Linuxへ
Linux

にほんブログ村 IT技術ブログ オープンソースへ
オープンソース

 

 

Opensourcetech by Takahiro Kujirai