Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 15:13:47

Author Topic: cara bikin cronjob di centos  (Read 3223 times)

0 Members and 1 Guest are viewing this topic.

Offline kusworo

  • Valuable Member
  • *
  • Posts: 54
  • Karma: +0/-0
    • View Profile
cara bikin cronjob di centos
« 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

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cara bikin cronjob di centos
« Reply #1 on: 2016-08-07, 10:21:10 »
Alasan buat cron job yang aneh seperti itu?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline kusworo

  • Valuable Member
  • *
  • Posts: 54
  • Karma: +0/-0
    • View Profile
Re: cara bikin cronjob di centos
« Reply #2 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,,

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cara bikin cronjob di centos
« Reply #3 on: 2016-08-07, 10:36:41 »
Infokan 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline kusworo

  • Valuable Member
  • *
  • Posts: 54
  • Karma: +0/-0
    • View Profile
Re: cara bikin cronjob di centos
« Reply #4 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)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cara bikin cronjob di centos
« Reply #5 on: 2016-08-07, 10:43:40 »
Update Kloxo-MR 7.0 anda.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline kusworo

  • Valuable Member
  • *
  • Posts: 54
  • Karma: +0/-0
    • View Profile
Re: cara bikin cronjob di centos
« Reply #6 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

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cara bikin cronjob di centos
« Reply #7 on: 2016-08-07, 10:50:51 »
Cukup:
Code: [Select]
yum clean all
yum update -y
sh /script/cleanup
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.045 seconds with 18 queries.

web stats analysis