GIT – There some tips of :  Wget on , Enable or Direct Login, Tuning Apache Web Server on FreeBSD

1. Wget on FreeBSD

f you are coming from Linux, you will find wget missing on FreeBSD. Many programs that relay on wget will stop working on FreeBSD.

For downloading files, FreeBSD use “fetch”. To a file with fetch use

# fetch http://bizhat.com/game.zip

If you really need wget working, you can do one of the following, first method is symlink. Today i was installing qmail-ldap, the instruction says wget, i have changed it to fetch and executed and it worked fine. So i though of a symlink, that will do the same with out changing wget to fetch or installing wget on FreeBSD.

# ln -s /usr/bin/fetch /usr/bin/wget

Now every call to wget will invoke fetch. You can wget on FreeBSD from ports or even download the source and compile it your self. To wget from ports, do the following.

# cd /usr/ports/ftp/wget
# make install clean
# rehash

Now you have wget installed on your FreeBSD server. I recommend using fetch with symlink as both wget and fetch do the same job.

2.Enable or Disable Direct Root Login 

Please see : http://www.gocit.vn/bai-viet/enable-or-disable-direct-root-login/

3. Tuning Apache Web Server on FreeBSD

Then you modify the following variables:

sysctl -w kern.ipc.nmbclusters=16384
sysctl -w kern.ipc.maxsockets=16384

Other:
set simultaneous connections very high
you must know your performance characteristics, make graps with your performance, analyze your server parameters
use a dedicate server for your web server (do not mix with other server, like mail server)
httpd.conf (apache):
StartServers should be high (default is 5, for a dedicate server make it higher
MaxRequestPerChild= 10000
Timeout (to get a TCP ACK for a GET request) should be 60 (default is 300)
MaxClients (FreeBSD) = 256
Print Friendly, PDF & Email

Comments

comments

Bài viết liên quan