おっさんエンジニアの忘備録

Linux系の各種作業を自分用の忘備録として残しています

MySQLデータベース・テーブル作成

(1)データベース作成 mysql> CREATE DATABASE test_db;Query OK, 1 row affected (0.00 sec)mysql> show databases;+--------------------+| Database |+--------------------+| information_schema || mysql || performance_schema || sys || test_db |+---…

負荷テスト関連サイト

◆abコマンドhttp://www.atmarkit.co.jp/ait/articles/0206/29/news001_2.html ◆stressコマンドhttp://d.hatena.ne.jp/jitsu102/20111120/1321790533 ◆Linux Test Projecthttp://blog.livedoor.jp/hakin/archives/51038015.html ◆ApacheJmeterhttp://jmeter.a…

RHEL6にsambaをインストール

必要最小限のみの設定です。 (1)yumでsambaインストール # yum install samba (2)公開用のディレクトリ作成 # mkdir /home/share # chmod 777 /home/share (3)smb.confの修正 ・ ・ security = user map to guest = Bad User ⇒セキュリティの設定(guestアク…

Mysql5.7初期セットアップ

(1)/var/log/mysqld.logに出力されている初期パスワードを確認 # less /var/log/mysqld.log2016-04-09T12:30:14.228569Z 1 [Note] A temporary password is generated for root@localhost: rK;img*lo7Oe (2)mysql_secure_installationを起動 # mysql_secure_…

vegrantのCentOS6.7のロケール変更

vagrantでCentOSの仮想環境を構築した場合、ロケールが英語になってしまう(init時にロケールを選択できない)ため、ロケールを変更してあげる必要があります。 (1)デフォルトのロケール確認 # locale LANG=en_GB.UTF-8LC_CTYPE="en_GB.UTF-8"LC_NUMERIC="en_G…

vegrantにCentOS6.7をインストール

(1)centos6.7用のboxを用意 >vagrant box add centos67 https://github.com/CommanderK5/packer-centos-template/releases/download/0.6.7/vagrant-centos-6.7.box ⇒しばらく時間がかかる (2)専用のディレクトリ作成 >cd c:\HashiCorp\Vagrant c:\HashiCorp\…