end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

install tomcat8.5 , nginx from amazon-linux-extras to amazon linux2

$ sudo amazon-linux-extras install tomcat8.5
$ ls -l /usr/share/tomcat
total 0
drwxr-xr-x 2 root root   76 Sep 23 07:40 bin
lrwxrwxrwx 1 root tomcat 11 Sep 23 07:40 conf -> /etc/tomcat
lrwxrwxrwx 1 root tomcat 22 Sep 23 07:40 lib -> /usr/share/java/tomcat
lrwxrwxrwx 1 root tomcat 15 Sep 23 07:40 logs -> /var/log/tomcat
lrwxrwxrwx 1 root tomcat 22 Sep 23 07:40 temp -> /var/cache/tomcat/temp
lrwxrwxrwx 1 root tomcat 23 Sep 23 07:40 webapps -> /var/lib/tomcat/webapps
lrwxrwxrwx 1 root tomcat 22 Sep 23 07:40 work -> /var/cache/tomcat/work

$ sudo systemctl enable tomcat
$ sudo systemctl start  tomcat


$ sudo amazon-linux-extras install nginx1
$ /usr/sbin/nginx -v
nginx version: nginx/1.18.0
$ sudo systemctl enable nginx
$ sudo systemctl start  nginx