2014/11/14

systemd mysql.service file where

Q:
mysqlをrpmをインストールして、systemctlの設定はどこ?
==>何?mysql?

sudo systemd show mysql

here is the same man

Implementation of systemd is imminent, yet after days of research I can
not find a mysqld.service file that actually works in Debian.  I've
searched and searched, asked on mailing lists, and asked in IRC on
#debian, #systemd, and #mysql.

Nobody knows, or at least nobody helps.  There isn't even a
mysqld.service file in Sid's mysql-server package.

=ーー>ぜんぜんみつかりません。。。

じゃ。。rpmファイルを解析する
=ー>そんなsrc.rpmはない。。

yum localinstall
==>
ローカルにあるのrpmファイルをyumでインストールする方法。
依存性のファイルをレポジトリから探してきてくれるのが超便利です。

=-->ないです。

How Do I Convert A SysV Init Script Into A systemd Service File?
SysV Init Script????
systemd Service File??
何か合っている。


A:==>init.d/のしたにtestを作って、
sudo systemctl show testを確認するところ
    ExecStart={ path=/etc/rc.d/init.d/test ; argv[]=/etc/rc.d/init.d/test start ; ignore_errors=no ; start_time=[n/a] ;
    ExecStop={ path=/etc/rc.d/init.d/test ; argv[]=/etc/rc.d/init.d/test stop ; ignore_errors=no ; start_time=[n/a] ;
ありますね。。。
結論的には、mysql.serviceは存在しない。systemdはinit.d↓のスクリプトを使って偽装(init.dしたのスクリプトは大体、start,stop restart status)があるので

2014/11/13

linux eth1 ifconfig network-scripts

Q:今のVMですが、自動的にIPをアサインする物があり、
ifconfigで=> eth1 eth2
 /network-scriptsのところは、eth0だけ。。。中にIPがない
再起動してIPはかわらない。VMであるが、このIPの情報はどこで保存された?
ネットワーク
 1準仮想化ネットワーク(NAT)
 2準仮想化ネットワーク(ホストオンリーアダブター virtualBox Host-only Ethernet Apapter)

A:
  ifup eht0
  ==>デバイスはない
  ifup eht1
  ==>デバイスに対する設定はみつかりません

==>設定ファイルの名前たしかに対応している
eth1を作ればいい。。

ーーーーーーーーー
DEVICE=eth1
TYPE=Ethernet
IPADDR=
NETMASK=
NETWORK=127.0.0.0
BROADCAST=
OTPROTO=static
ONBOOT=yes
HWADDR=。。。
ーーーーーーーーー

2014/11/07

msg: the python mysqldb module is required

まずは pip を入れる。

 # yum -y install python-setuptools
 # easy_install pip

必要な依存パッケージをインストールする。

 # yum -y install python-devel mysql-devel

 # pip install mysql-python
 # pip freeze | grep -i mysql
 MySQL-python==1.2.3

以上。