[ASK] Nginx Web Server

Discussion in 'Masalah Teknik dan Keamanan' started by cyberidiot, 12 Aug 2013.

Thread Status:
Not open for further replies.
  1. cyberidiot

    cyberidiot Poster 2.0

    Messages:
    126
    Likes Received:
    12
    Trophy Points:
    18
    selamat sore,

    mohon petunjuknya, saya pakai VPS WHM + nginxcp

    1. bagaimana cara membersihkan temporary filenya secara manual?
    apa cukup dengan, login SSH:
    # cd /tmp
    # rm -fr *


    2. bagaimana cara setting agar clean otomatis via cron?
    bagus nya per berapa jam?


    terima kasih atas petunjuknya, karena saya awam dengan nginx :43:
     
  2. galuh82

    galuh82 Hosting Guru Web Hosting (Company)

    Messages:
    2,514
    Likes Received:
    186
    Trophy Points:
    63
    sore,

    coba masuk ke panel nginxcp di whm, disana ada informasi untuk setup cronjob untuk keperluan tersebut, kalau tidak salah tulisannya cetak tabal warna hijau CMIIW

    tambahan: pastikan install tmpwatch

    gut lak ..
     
    cyberidiot likes this.
  3. cyberidiot

    cyberidiot Poster 2.0

    Messages:
    126
    Likes Received:
    12
    Trophy Points:
    18
    ada tulisan:
    0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client
    via crontab -e command

    bagaimana cara memasukkan perintah tersebut?
    itu cron nya jalan per 1hari ya?

    lalu bagaimana memastikan tmpwatch sudah terinstall? :cool:
     
  4. galuh82

    galuh82 Hosting Guru Web Hosting (Company)

    Messages:
    2,514
    Likes Received:
    186
    Trophy Points:
    63
    sebenarnya sudah jelas disana ..

    jalankan perintah crontab -e
    masukkan baris 0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client
    kemudian simpan

    untuk memastikan tmpwatch sudah terinstall, coba aja jalankan /usr/sbin/tmpwatch -am 1 /tmp/nginx_client

    gut lak ..
     
    cyberidiot likes this.
  5. cyberidiot

    cyberidiot Poster 2.0

    Messages:
    126
    Likes Received:
    12
    Trophy Points:
    18
    untuk di crontab -e sudah saya masukkan baris di atas, cuman waktu:

    root@xxxxx [~]# /usr/sbin/tmpwatch -am 1 /tmp/nginx_client
    -bash: /usr/sbin/tmpwatch: No such file or directory
    root@xxxxx [~]#

    apa belum terinstall ya?
     
  6. galuh82

    galuh82 Hosting Guru Web Hosting (Company)

    Messages:
    2,514
    Likes Received:
    186
    Trophy Points:
    63
    yum install tmpwatch

    atau bisa tanya om google pakai keyword "how to install tmpwatch"

    gut lak
     
    cyberidiot likes this.
  7. cyberidiot

    cyberidiot Poster 2.0

    Messages:
    126
    Likes Received:
    12
    Trophy Points:
    18
    mantab pak.

    root@xxxx [~]# /usr/sbin/tmpwatch -am 1 /tmp/nginx_client
    root@xxxx[~]#
    root@xxxx[~]# df -i /tmp
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /usr/tmpDSK 68976 13088 55888 19% /tmp
    root@xxxx [~]#


    Terima kasih atas bantuannya pak :41:
     
  8. roger wenas

    roger wenas Beginner 2.0

    Messages:
    56
    Likes Received:
    4
    Trophy Points:
    8
  9. galuh82

    galuh82 Hosting Guru Web Hosting (Company)

    Messages:
    2,514
    Likes Received:
    186
    Trophy Points:
    63
    sip, senang bisa bantu :)
     
    roger wenas likes this.
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...