MRatWork Forum by Mustafa Ramadhan

Language Specific Discussions => Indonesia Users => Topic started by: kusworo on 2016-08-07, 10:02:22

Title: cara bikin cronjob di centos
Post by: kusworo on 2016-08-07, 10:02:22
saya mau bikin cron job dengan command ssb
"yes | cp -f /opt/configs/apache/etc/conf.d/fastcgi.conf /etc/httpd/conf.d/fastcgi; pkill -9 httpd; sh /script/restart-web -y
yes | mv /etc/httpd/conf.d/fastcgi /etc/httpd/conf.d/fastcgi.conf
reboot
"

cron job ini jalan setiap hari pada jam 11 pagi, caranya gimana mastah bikin di cron jobnya,, saya udah install cron jobnya,,di kloxo-mrnya
Title: Re: cara bikin cronjob di centos
Post by: MRatWork on 2016-08-07, 10:21:10
Alasan buat cron job yang aneh seperti itu?.
Title: Re: cara bikin cronjob di centos
Post by: kusworo on 2016-08-07, 10:34:34
Alasan buat cron job yang aneh seperti itu?.

beberapa hari belakangan web di vps centos ane jam 11 dilihat dari indikator di histats pasti traffick gk ada dan saya cek webnya tampilanya "501" ane coba pake command ini
"yes | cp -f /opt/configs/apache/etc/conf.d/fastcgi.conf /etc/httpd/conf.d/fastcgi; pkill -9 httpd; sh /script/restart-web -y
yes | mv /etc/httpd/conf.d/fastcgi /etc/httpd/conf.d/fastcgi.conf
reboot"

normal lagi bisa di akses,,
Title: Re: cara bikin cronjob di centos
Post by: MRatWork on 2016-08-07, 10:36:41
Infokan 'sh /script/sysinfo'.
Title: Re: cara bikin cronjob di centos
Post by: kusworo on 2016-08-07, 10:38:53
Infokan 'sh /script/sysinfo'.
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016072301
   - Web: hiawatha-10.3.0-f.1.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: serverkusworoo.vultr.com
C. Services:
   1. MySQL: MariaDB-server-10.0.26-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php54-cli-5.4.45-1.ius.el6.x86_64
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: hiawathaproxy
     - Hiawatha: hiawatha-10.3.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.39-3.el6.x86_64
     - Nginx: nginx-1.11.2-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: nsd
     - Bind: --uninstalled--
     - DJBDns: --uninstalled--
     - NSD: nsd-4.1.10-1.mr.el6.x86_64
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:           742        656         85         30         93        189
   -/+ buffers/cache:        373        368
   Swap:            0          0          0
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/vda1        15G  4.8G  9.3G  34% /


*** Process Time: 00:00:00:10.10803 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)
Title: Re: cara bikin cronjob di centos
Post by: MRatWork on 2016-08-07, 10:43:40
Update Kloxo-MR 7.0 anda.
Title: Re: cara bikin cronjob di centos
Post by: kusworo on 2016-08-07, 10:46:18
Update Kloxo-MR 7.0 anda.

apa bener pake command ini om

yum clean all
yum update mratwork-* -y
yum install kloxomr7 -y
sh /script/upcp
Title: Re: cara bikin cronjob di centos
Post by: MRatWork on 2016-08-07, 10:50:51
Cukup:
Code: [Select]
yum clean all
yum update -y
sh /script/cleanup