Postingan

Menampilkan postingan dari Juli, 2014

Perl Daemon

http://search.cpan.org/~deti/Proc-Daemon-0.14/lib/Proc/Daemon.pod use Proc :: Daemon ; $daemon = Proc :: Daemon -> new ( work_dir => '/my/daemon/directory' , ..... ); $Kid_1_PID = $daemon -> Init ; unless ( $Kid_1_PID ) { # code executed only by the child ... } $Kid_2_PID = $daemon -> Init ( { work_dir => '/other/daemon/directory' , exec_command => 'perl /home/my_script.pl' , } ); $pid = $daemon -> Status ( ... ); $stopped = $daemon -> Kill_Daemon ( ... );

CentOS MySQL boot start

[root@server]# chkconfig mysqld on [root@server]# service mysqld start

Centos 6 Enable NTFS support

# cd /etc/yum.repos.d # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -Uvh epel-release-6-8.noarch.rpm # yum install ntfs-3g.x86_64

Centos 6 Kambing Repo

# CentOS-Base.repo # http://kambing.ui.ac.id/centos/6.5/ # /etc/yum.repos.d/CentOS-Base.repo [SCL] name=CentOS baseurl=http://kambing.ui.ac.id/centos/6/SCL/x86_64/ enabled=1 gpgcheck=1 gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6 [CentOSPlus] name=CentOS baseurl=http://kambing.ui.ac.id/centos/6/centosplus/x86_64/ enabled=1 gpgcheck=1 gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6 [Contrib] name=CentOS baseurl=http://kambing.ui.ac.id/centos/6/contrib/x86_64/ enabled=1 gpgcheck=1 gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6 [Extras] name=CentOS baseurl=http://kambing.ui.ac.id/centos/6/extras/x86_64/ enabled=1 gpgcheck=1 gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6 [Fasttrack] name=CentOS baseurl=http://kambing.ui.ac.id/centos/6/fasttrack/x86_64/ enabled=1 gpgcheck=1 gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6 [OS] name=CentOS baseurl=http://kambing.ui.ac.id/centos/6/os/x86_64/ e