In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Set up this server, so that the client browses the web by setting the squid of the proxy server, and uses QQ, MSN, securities and other services through the socks5 of the proxy server. The following briefly introduces the process of setting up the server.
First, install FreeBSD6.0Release
Download the latest version of FreeBSD6.0Release from ftp://ftp.freebsd.org/pub/FreeBSD/torrents/6.0-RELEASE and choose to minimize installation (activate ftp and ssh services during installation).
Network Information:
IP address range-> 192.168.10.0Mab 24
Fxp0-> intranet Nic 192.168.10.254
Em0-> external network card 218.104.52.x/32
1. Choose minimized installation when selecting a software package.
2. Activate ftp and telnet services when editing inetd.conf.
Others are installed by default, please refer to this and restart the machine after installation.
2. Configure freebsd
1. Configure / etc/rc.conf:
Hostname= "jifangproxy.jscpu.com"
Defaultrouter= "218.104.52.x"
Ifconfig_em0= "inet 218.104.52.x netmask 255.255.255.248"
Ifconfig_fxp0= "inet 192.168.10.254 netmask 255.255.255.0"
Inetd_enable= "YES"
Kern_securelevel_enable= "NO"
Linux_enable= "YES"
Nfs_reserved_port_only= "YES"
Sendmail_enable= "NONE"
Sshd_enable= "YES"
Usbd_enable= "NO"
2. Configure / etc/resolv.conf:
Domain jscpu.com
Nameserver 218.104.48.106
Nameserver 221.6.4.66
3. Put the CD in the CD drive and install ports and src
# / usr/sbin/sysinstall
Then select Configure-- > Distributions, then use the spacebar to select src and ports, click install, and restart the machine after installation.
Third, configure the kernel
# cd / usr/src/sys/i386/conf
# cp GENERIC funpower
# ee funpower
The kernel is configured according to the server.
After editing the funpower, start compiling and installing the kernel:
# / usr/sbin/config funpower
# cd.. / compile/funpower
# make cleandepend
# make depend
# make
# make intall
Restart the machine after the compilation and installation is complete.
Fourth, install squid service
1. Install perl (after freebsd5.4, install perl before installing squid)
Download http://www.bbqmw.net/qm_yeqm/perl-5.6.2.tar.gz from http://www.cpan.org/authors/id/R/RG/RGARCIA/, copy it to / usr/ports/distfiles, and then:
# cd / usr/ports/lang/perl5
# make install
2. Download and install squid
Download the latest version of squid squid-2.5.STABLE12.tar.gz from http://www.squid-cache.org/Versions/v2/2.5/ and upload it to the server directory via ftp.
# cd / home/funpower
# tar zxvf squid-2.5.STABLE12.tar.gz
# cd squid-2.5.STABLE7
#. / configure-prefix=/usr/local/squid
# make
# make install
# cd / usr/local/squid/etc
# ee squid.conf
Change the following items in the configuration file:
Http_port 3128 / / 56 lines
Cache_mem 128 MB / / 490 lines
Cache_dir ufs / usr/local/squid/cache 1024 16 256 / / 705 lines
Cache_access_log / dev/null / / 712
Cache_log / dev/null / / 720
Cache_store_log none / / 730
The following items are added to the configuration file:
Acl web src 192.168.10.254 / / add before the line 1830 or so acl all src 0.0.0.0swap 0.0.0.0
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.