AKAI TSUKI

System development or Technical something

Install python 3.5 in CentOS 7(docker container)

Command List After Add IUS Community Project to Yum Repository in CentOS 7 - AKAI TSUKI install and confirm python3.5 # yum install -y python35u python35u-libs python35u-devel python35u-pip # find / -name python3.5 # python3.5 -V create sy…

Add IUS Community Project to Yum Repository in CentOS 7

Command List add IUS Community Project # yum install -y https://centos7.iuscommunity.org/ius-release.rpm yum search python35 (or something) # yum search python3 Detail [root@519dd98187dd /]# yum install -y https://centos7.iuscommunity.org/…

Install iproute in docker container (centos7).

I did not use ip/ss commands in default centos7 container. So, I install iproute package to container. Command list install iproute # yum install iproute Detail [root@519dd98187dd /]# yum install iproute Loaded plugins: fastestmirror, ovl …

install docker-compose 1.10.1 on CentOS 7

install I failed to get docker-compose as follows: [vagrant@localhost ~]$ sudo curl -L https://github.com/docker/compose/releases/download/1.10.1/dock er-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose -bash: /usr/local/bin/d…

install docker 1.13 on CentOS 7

I try to install docker 1.13 on CentOS 7. (Reference) https://docs.docker.com/engine/installation/linux/centos/ add repo to yum install hello world setting add repo to yum [vagrant@localhost ~]$ sudo yum install -y yum-utils Loaded plugins…

resize file system in Cent OS 7

ref:Create Physical volume in Linux CentOS - AKAI TSUKI add physical volume to volume group expand the logical volume resize file system size Add Physical Volume to Volume Group before # pvs PV VG Fmt Attr PSize PFree /dev/sda2 cl lvm2 a--…

Create Physical volume in Linux CentOS

Check disk mount and type with df # df -khT Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/cl-root xfs 35G 1.2G 34G 4% / devtmpfs devtmpfs 1.9G 0 1.9G 0% /dev tmpfs tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs tmpfs 1.9G 8.3M 1.9G 1% /…

Create LVM type partition in Linux CentOS 7 by fdisk

create /dev/sda3 # fdisk /dev/sda Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/sda: 85.9 GB, 85899345…

Use docker container for ssh test.

https://hub.docker.com/r/jdeathe/centos-ssh/ [root@localhost ~]# docker run -d \ > --name ssh.pool-1.1.1 \ > -p 2020:22 \ > jdeathe/centos-ssh:centos-7 Unable to find image 'jdeathe/centos-ssh:centos-7' locally centos-7: Pulling from jdeat…

What is dularion/streama?

etc

It's like Netflix, but self-hosted! http://dularion.github.io/streama/ github.com

confirm package(apt) version in Ubuntu

I confirmed version of zfs(zfsutils-linux) and lxd. ubu@ubuntu16:~$ apt-cache policy zfsutils-linux zfsutils-linux: Installed: 0.6.5.6-0ubuntu15 Candidate: 0.6.5.6-0ubuntu15 Version table: *** 0.6.5.6-0ubuntu15 500 500 http://jp.archive.ub…

Install lxd in Ubuntu

I executed the command "sudo apt install zfs lxd" in Ubuntu 16.04. But... lxd is already the newest version (2.0.8-0ubuntu1~ubuntu16.04.2). ubu@ubuntu16:~$ sudo apt install zfs lxd [sudo] password for ubu: Reading package lists... Done Bui…

apt update in ubuntu

I executed the command "sudo apt update". ubu@ubuntu16:~$ sudo apt update [sudo] password for ubu: Hit:1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease Get:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:3…

network configuration for ubuntu

I use ubuntu 16.04. I configured interfaces file for static ip as follows: ubu@ubuntu16:~$ cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, …

start postgres

try to start postgres by docker. [root@localhost ~]# docker pull postgres Using default tag: latest latest: Pulling from library/postgres 75a822cd7888: Pull complete 68f8c57d4ec8: Pull complete 1ee19503c02a: Pull complete ea8f451ca276: Pul…

install ansible on docker container.

I installed ansible on docker container. [root@localhost ~]# docker run -d --name ansible centos:7 tail -f /dev/null 89fc39c2cbb0de2fe9f520ccfbb7cd43fa77ed62632d7479ab3e9779b73de258 [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND …

hello world by springboot

I uploaded hello world sorce code to github. github.com After I executed app, I use curl command as follows: # curl http://192.168.0.6:8080/hello {"message":"Hello world"}

start Java and Eclipse

新しく環境を用意してみた。 1. download java jdk-8u112-windows-x64.exe http://www.oracle.com/technetwork/jp/java/javase/downloads/index.html http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 2. download ecl…

try to use filebeat.

ログファイルが出力されたら、filebeatを実行したコンソールに出力されるまで試してみました。 設定 # cat filebeat.yml | sed '/^ *#/d' | sed '/^$/d' filebeat.prospectors: - input_type: log paths: - /tmp/log/*.log output.console: pretty: false ロ…

docker run with '-d' option

[root@localhost ~]# docker run -d --name ansible centos:7 tail -f /dev/null 97f8213ed1883270d11067a24bc6f718e77c5918005d58206d6b569fc02e8e58 [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 97f8213ed188 c…

docker pull image

[root@localhost ~]# docker pull centos Using default tag: latest latest: Pulling from library/centos 45a2e645736c: Pull complete Digest: sha256:c577af3197aacedf79c5a204cd7f493c8e07ffbce7f88f7600bf19c688c38799 Status: Downloaded newer image…

start docker (version 1.12.5)

[root@localhost ~]# systemctl enable docker.service Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service. [root@localhost ~]# systemctl start docker [root@localhost ~]# d…

install docker in CentOS 7

[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) [root@localhost ~]# getenforce Enforcing [root@localhost ~]# [root@localhost ~]# yum install docker-engine Loaded plugins: fastestmirror Loading mirror speeds…

remove '#' and empty lines

設定ファイルを確認する際に、コメント行などを表示しないようにする。 コメント行削除する場合には、sedで、 $ cat filename | sed -e '/^#.*$/d' 空行も削除するなら $ sed -e 's/#.*$//' -e '/^$/d' さらに以下を行うと、空行が2回続く場合に1行にまとめ…

After Installation, Verification StackStorm status.

Verify なんか、いろいろFailedとか出てます。 OKなのかどうなのか微妙だ。。。 [root@stackstorm ~]# st2 --version st2 2.0.0 [root@stackstorm ~]# st2 action list --pack=core +-------------------+------+-----------------------------------+ | ref…

Start Services of StackStorm.(2)

Start services [root@stackstorm ~]# st2ctl start Failed to start st2chatops.service: Unit st2chatops.service failed to load: No such file or directory. ##### st2 components status ##### st2actionrunner PID: 5308 st2actionrunner PID: 5310 s…

Start Services of StackStorm.

Configure SSH and SUDO [root@stackstorm ~]# mkdir -p /home/stanley/.ssh [root@stackstorm ~]# chmod 0700 /home/stanley/.ssh [root@stackstorm ~]# ssh-keygen -f /home/stanley/.ssh/stanley_rsa -P "" Generating public/private rsa key pair. Your…

install StackStorm. (Setup Mistral Database)

Setup Mistral Database [root@stackstorm ~]# cat << EHD | sudo -u postgres psql > CREATE ROLE mistral WITH CREATEDB LOGIN ENCRYPTED PASSWORD 'StackStorm'; > CREATE DATABASE mistral OWNER mistral; > EHD could not change directory to "/root" …

install StackStorm.

RHEL 7 / CentOS 7 — StackStorm 2.0.0 documentation akai-tsuki.hatenablog.com Setup repositories [root@stackstorm ~]# curl -s https://packagecloud.io/install/repositories/StackStorm/stable/script.rpm.sh | bash Detected operating system as c…

install StackStorm (MongoDB, RabbitMQ and PostgreSQL.)

Precondition [root@stackstorm ~]# getenforce Disabled [root@stackstorm ~]# iptables -nL Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy AC…