[tanya] caching 10.04 server

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
class_nol
Posts: 9
Joined: 05 Dec 2012, 16:33

[tanya] caching 10.04 server

Postby class_nol » 05 Dec 2012, 16:39

mas saya coba ngebuat server caching proxy"
bantu saya mas ,,,,
error trus ..

saya nurutin tutorial
http://warnetjombangget-net.blogspot.co ... -1010.html

dimana yang harus saya benahin mas
User avatar
sta
Posts: 2003
Joined: 27 Apr 2010, 09:49
Contact:

Re: [tanya] caching 10.04 server

Postby sta » 05 Dec 2012, 17:03

errornya gimana mas?
User avatar
class_nol
Posts: 9
Joined: 05 Dec 2012, 16:33

Re: [tanya] caching 10.04 server

Postby class_nol » 05 Dec 2012, 17:20

pas compile disini erro mas !!

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"

--enable-err-languages=English --enable-default-err-language=English --with-maxfd=65536!!!!!!!!!
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [tanya] caching 10.04 server

Postby q_p » 05 Dec 2012, 17:30

User avatar
class_nol
Posts: 9
Joined: 05 Dec 2012, 16:33

Re: [tanya] caching 10.04 server

Postby class_nol » 05 Dec 2012, 17:37

ane lum ngerti mas !!
ane enggak pakek lusca mas!!

ane coba proses compile nya

makasih mas?
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [tanya] caching 10.04 server

Postby q_p » 05 Dec 2012, 17:45

Wow...setelah ke tkp bukan lusca tapi squid 2.7.9. Ya tidak bisa mas, lha wong langkah patching-nya tidak disebutkan gitu. Anda harus patch dulu baru ngupil. Ekstrak semuanya di satu direktori, patch dengan perintah

Code: Select all

patch -p0 < nama_file.patch
Ulang pada semua file_nama.patch
./bootstrap.sh
Lanjutkan dengan ngupil. CMIIW ... :)
User avatar
class_nol
Posts: 9
Joined: 05 Dec 2012, 16:33

Re: [tanya] caching 10.04 server

Postby class_nol » 05 Dec 2012, 17:56

PragolaPati wrote:Wow...setelah ke tkp bukan lusca tapi squid 2.7.9. Ya tidak bisa mas, lha wong langkah patching-nya tidak disebutkan gitu. Anda harus patch dulu baru ngupil. Ekstrak semuanya di satu direktori, patch dengan perintah

Code: Select all

patch -p0 < nama_file.patch
Ulang pada semua file_nama.patch
./bootstrap.sh
Lanjutkan dengan ngupil. CMIIW ... :)


sudah di ektrak semua trus...
dicompile dulu atau gmn mas,,,,

langsung install
___make install___atau__./bootstrap__

soalnya ane persis ngikutin cara2 di blog ntuh mas...
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [tanya] caching 10.04 server

Postby q_p » 05 Dec 2012, 18:17

Masuk ke direktori squid yang diekstrak tadi, lakukan coompile di sana.
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [tanya] caching 10.04 server

Postby q_p » 05 Dec 2012, 18:48

Coba mulai dari awal saja mas :

Code: Select all

$mkdir /home/workdir
$cd /home/workdir
$wget get http://tempat-sampah.googlecode.com/files/squid-2.7.STABLE9%2Bpatch.tar.gz
$tar -xzvf squid-2.7.STABLE9+patch.tar.gz
$cd squid-2.7.STABLE9
$CHOST="i686-pc-Linux-gnu" CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" \
./configure --prefix=/usr --exec_prefix=/usr --bindir=/usr/sbin \
--sbindir=/usr/sbin --libexecdir=/usr/lib/squid --sysconfdir=/etc/squid \
--localstatedir=/var/spool/squid --datadir=/usr/share/squid --enable-async-io=24 \
--with-aufs-threads=24 --with-pthreads --enable-storeio=aufs \
--enable-linux-netfilter --enable-arp-acl --enable-epoll \
--enable-removal-policies=heap --with-aio --with-dl --enable-snmp \
--enable-delay-pools --enable-htcp --enable-cache-digests \
--disable-unlinkd --enable-large-cache-files --with-large-files \
--enable-err-languages=English --enable-default-err-language=English \
--with-maxfd=65536
$make
$make install
$cd ~
User avatar
class_nol
Posts: 9
Joined: 05 Dec 2012, 16:33

Re: [tanya] caching 10.04 server

Postby class_nol » 05 Dec 2012, 19:04

iya mas ini saya lagi dari awal lagi mas...
hasil download squid tadi ektras di root atau dibuat di folder lain mas?
User avatar
class_nol
Posts: 9
Joined: 05 Dec 2012, 16:33

Re: [tanya] caching 10.04 server

Postby class_nol » 05 Dec 2012, 20:44

root@server:/etc/squid# squid stop
FATAL: Bungled (null) line 181: cache_dir ufs /var/spool/squid/cache 100 16 256
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.

root@server:/etc/squid# /etc/init.d/squid stop
bash: /etc/init.d/squid: No such file or directory
root@server:/etc/squid#
_________________________________________________________________

apakah udah berhasil belon mas

root@server:/etc/squid# squid -v
Squid Cache: Version 2.7.STABLE9
configure options: '--prefix=/usr' '--exec_prefix=/usr' '--bindir=/usr/sbin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib/squid' '--sysconfdir=/etc/squid' '--localstatedir=/var/spool/squid' '--datadir=/usr/share/squid' '--enable-async-io=24' '--with-aufs-threads=24' '--with-pthreads' '--enable-storeio=aufs' '--enable-linux-netfilter' '--enable-arp-acl' '--enable-epoll' '--enable-removal-policies=heap' '--with-aio' '--with-dl' '--enable-snmp' '--enable-delay-pools' '--enable-htcp' '--enable-cache-digests' '--disable-unlinkd' '--enable-large-cache-files' '--with-large-files' '--enable-err-languages=English' '--enable-default-err-language=English' '--with-maxfd=65536' 'CFLAGS=-march=core2 -O2 -pipe -fomit-frame-pointer'
root@server:/etc/squid#
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [tanya] caching 10.04 server

Postby yudiarbi » 05 Dec 2012, 20:56

itu direktory /var/spool/squid/cache udah dibuat?
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [tanya] caching 10.04 server

Postby q_p » 05 Dec 2012, 21:04

FATAL: Bungled (null) line 181: cache_dir ufs /var/spool/squid/cache 100 16 256
Kesalahan pada squid.conf di baris 181 yaitu 'cache_dir ufs /var/spool/squid/cache 100 16 256'
bash: /etc/init.d/squid: No such file or directory
File yang bernama 'squid' yang anda perlukan u/ start-stop-restart tidak ada pada directory /etc/init.d
apakah udah berhasil belon mas
Sudah berhasil ngupil mas, anda bisa lanjutkan dengan edit file squid.conf dan buat file init u/ squid yang di /etc/init.d
User avatar
class_nol
Posts: 9
Joined: 05 Dec 2012, 16:33

Re: [tanya] caching 10.04 server

Postby class_nol » 06 Dec 2012, 00:51

bash: --localstatedir=/var/spool/squid: No such file or directory


gimana ya mas cara mengatasinya :(
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [tanya] caching 10.04 server

Postby q_p » 06 Dec 2012, 01:01

bash: --localstatedir=/var/spool/squid: No such file or directory
tidak ditemukan semacam file atau direktori pada /var/spool/squid.

Code: Select all

$mkdir /var/spool/squid
User avatar
class_nol
Posts: 9
Joined: 05 Dec 2012, 16:33

Re: [tanya] caching 10.04 server

Postby class_nol » 06 Dec 2012, 01:48

udah ada mas directory squid nya...
jadi gak bisa dibuat lagi..

class_nol wrote:root@server:/var/spool# ls -al
total 20
drwxr-xr-x 5 root root 4096 2012-12-05 19:04 .
drwxr-xr-x 15 root root 4096 2012-12-05 19:04 ..
drwxr-xr-x 5 root root 4096 2012-12-05 18:52 cron
lrwxrwxrwx 1 root root 7 2012-12-05 18:42 mail -> ../mail
drwxr-xr-x 2 root root 4096 2010-11-24 04:28 plymouth
drwxrwxrwx 20 proxy proxy 4096 2012-12-06 00:54 squid
root@server:/var/spool# mkdir /var/spool/squid
mkdir: cannot create directory `/var/spool/squid': File exists
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [tanya] caching 10.04 server

Postby q_p » 06 Dec 2012, 02:37

Di squid.conf pakai yang ini ya ?

Code: Select all

cache_dir ufs /var/spool/squid/cache 100 16 256
yang betul cache_dir aufs dan ukurannya kekecilan (masa cuma 100). Kalau bisa u/ cache_dir menggunakan partisi yang berbeda (yang buat saat install) pada HDD yang berbeda pula.
User avatar
class_nol
Posts: 9
Joined: 05 Dec 2012, 16:33

Re: [tanya] caching 10.04 server

Postby class_nol » 06 Dec 2012, 12:15

pas saya compile
class_nol wrote: --localstatedir=/var/spool/squid --datadir=/usr/share/squid --enable-async-io=24 --with-aufs-threads=24 --with-pthreads --enable-storeio=aufs \
>

root@server:/home/proxyku#

muncul gini
class_nol wrote:bash: --localstatedir=/var/spool/squid: No such file or directory


bingung ane udah seharian
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: [tanya] caching 10.04 server

Postby q_p » 06 Dec 2012, 16:57

Sebelum ngupil, buat dulu direktori '/var/spool/squid'

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 2 guests