⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install.ms

📁 早期freebsd实现
💻 MS
📖 第 1 页 / 共 5 页
字号:
.PPThe \fI_PATH_RNEWSPROGS\fP directory serves the same purpose for \fIrnews\fPwhen it needs to unpack batches.The \fIRNEWSPROGS\fP parameter specifies if the directory is really used..NH 3Sockets created by innd or clients.PPThe \fIinnd\fP server and its clients (most notably \fIctlinnd\fP)create.UX -domainsockets or named pipes.They are created inside a ``firewall'' directory that gives access permissionto a limited set of users.For example, assume the directory is \fI/usr/local/news/innd\fP and that itis owned by user news in group news and has mode 0770.Using these permissions, then only members of the news group can use\fIctlinnd\fP to create new groups because only they will be able tosend a message to the \fIinnd\fP socket..PPThis directory (which is specified by the \fI_PATH_INNDDIR\fP parameter)is also used to determine the user and group id of all sub-processes spawnedby \fIinnd\fP, as well as the owner of all news articles and files.The owner of this directory is set at installation time and specified inthe ``Ownerships and file modes'' section, above..NH 3Log and config files.PPINN keeps its databases, and some control files their own directory,typically named \fI/usr/local/news\fP.Log files are kept in \fI/var/log/news\fP.There are many parameters in this section that refer to files withinthis directory.Some sites will want to globally replace ``/usr/local/news'' with somethinglike ``/var/news'', and ``/usr/lib/newsbin'' with ``/var/newsbin''.PPThere are two files that contain access passwords,\fI_PATH_NNTPPASS\fP and \fI_PATH_NNRPACCESS\fP.The default location for these files is in \fI/usr/local/etc\fP, so that it isgenerally safe to export \fI/usr/local/news\fP (read-only is probably best)..PPINN programs do extensive logging, and the daily maintenance scriptsdo extensive summary reports and analysis of them.It might take you some time to learn your way around the INN logging system;start by reading the newslog manpages in the \fIdoc\fP directory..NH 3Innwatch configuration.PPThe INN server, \fIinnd\fP, does not contain any checks to see if thereis enough free space on the disk or if the system load average is low enoughto allow article reception.There are two reasons for this.The first reason is philosophical:  it is a mistake to bury this kind of policyinformation inside a program.For example, you don't want to have to recompile the program justbecause you moved to a different filesystem.(Yes, this could be partially answered by moving the information to anexternal config file, but any compiled rules are still likely to beincomplete.)The second reason is pragmatic:  there is no portable way to get standardmeasurements for the information needed.For example, C News provides three different routines to get the filesystemstatistics (with conditional compilation) while the ``get load average''file in IDA sendmail has over 700 lines..PPRather than get tangled up in such a mess of #ifdef's, INN uses anexternal program (shell script) that invokes \fIctlinnd\fP to stop and start theserver as necessary.The program, \fIinnwatch\fP, reads the control file \fIinnwatch.ctl\fP.\fIInnwatch\fP is documented in \fIdoc/news.daily.8\fP, while \fIinnwatch.ctl\fPis documented in \fIdoc/innwatch.ctl.5\fP..PPThe parameters in this section control when the server should stop acceptingarticles, and when it should start again.You will have to examine \fIsite/innwatch.ctl\fP and probably modify it,usually to check the amount of free space on the disks.For example, there is a line in the file that has this fragment in it:.DS!!! df . | awk 'NR == 2 { print $4 }' ! ....DEThis is looking at the fourth field of the second line to get the amountof freespace.You will have to change the ``2'' and ``4'' here, and on other lines, asappropriate for your system.(Changing the output of \fIdf\fP seems to be one of the things vendors liketo do most; it is not worth my time to have INN keep track of all of them.).PPThe parameter \fIINNWATCH_SLEEPTIME\fP specifies how frequently\fIinnwatch\fP should check the system \(em the other parameters shouldbe set with this in mind, eg: there needs to be enough free space on thefilesystem to last the next \fIINNWATCH_SLEEPTIME\fP seconds..PPThe \fIINNWATCH_xxxLOAD\fP parameters specify the load average atwhich different actions should be taken.They are integers, representing the load average multipled by 100.For example, if you want to throttle the server when your load reaches7.5, set \fIINNWATCH_HILOAD\fP to ``750.''.PPThe \fIINNWATCH_xxxSPACE\fP parameters specify the minimum amount of diskspace needed for each of INN's three major filesystems.The numbers are in ``local units,'' equivalent to whatever your \fIdf\fPuses (512-byte units, 1K blocks, etc)..PPThe \fIINNWATCH_SPOOLNODES\fP parameter specifies how many inodes mustbe available in your spool directory..NH 2Typical config.data changes.PPThe following sections show some of the changes that need to be made to\fIconfig.data\fP so that INN will compile.They are only samples; ``your mileage may vary.''.PPNote that if you are using the first release of \fIgcc2\fP, set\fIUSE_CHAR_CONST\fP to ``DONT''..PP.DS.UL "AIX".ta \w'HAVE_ST_BLKSIZE   'uDEFS	-I../include -D_NO_PROTO -U__STR__FORK	forkFREEVAL	voidFUNCTYPE	intHAVE_ST_BLKSIZE	DONTHAVE_TM_GMTOFF	DONTLDFLAGS	LINTFILTER	| sed -n -f ../sedf.aixLINTFLAGS	-wkD -b -h $(DEFS)LINTLIBSTYLE	SYSVLOCK_STYLE	FNCTLMISSING_MAN	MISSING_SRC	NEED_TIME	DOPOINTER	void.DEUnder AIX 3.1, you must also use the \fIsyslog\fP that comes with INN.This is not necessary for 3.2.Some versions also need \USE_UNION_WAIT\fP set to ``DONT''..PP.DS.UL "A/UX".ta \w'HAVE_ST_BLKSIZE   'uLIBS	-lbsd.DEMake sure you don't use \fIgcc\fP version 1; it miscompiles the socket callsin \fIinnd/cc.c\fP..PP.DS.UL "BSDI"ABORTVAL	voidALARMVAL	u_intEXITVAL	volatile void_EXITVAL	volatile voidFREEVAL	voidGETPIDVAL	pid_tGID_T	gid_tHAVE_UNISTD	DOHAVE_VFORK	DONTHAVE_WAITPID	DOLSEEKVAL	off_tMISSING_OBJ	MISSING_SRC	_PATH_COMPRESS	/usr/bin/compress_PATH_EGREP	/usr/bin/egrep_PATH_MAILCMD	/usr/bin/Mail_PATH_SENDMAIL	/usr/sbin/sendmail -tPID_T	pid_tPOINTER	voidQSORTVAL	voidSIZE_T	size_tSLEEPVAL	u_intUID_T	uid_tUSE_UNION_WAIT	DONTVAR_STYLE	STDARGS.DEChange the \fISHELL\fP variable in \fIconfig/Makefile\fP and\fIsite/Makefile\fP to point to \fI/usr/contrib/bin/bash\fP.Edit \fIlib/Makefile\fP so that the \fIinstall\fP target does nottry to make \fI../llib-linn.ln\fP.You must also use the GNU \fIsed\fP; the version distributed withBSDI 0.9.4.1 enters an infinite loop processing newgroup messages..PP.DS.UL "HP-UX 8.0".ta \w'HAVE_ST_BLKSIZE   'uABORTVAL	voidALARMVAL	unsigned intCLX_STYLE	FCNTLCTYPE	isXXXXX((c))DEFS	-I../include -DHPUXFDCOUNT_STYLE	SYSCONFFREEVAL	voidGETPIDVAL	pid_tGID_T	gid_tHAVE_SETBUFFER	DONTHAVE_ST_BLKSIZE	DONTHAVE_TM_GMTOFF	DONTHAVE_UNISTD	DOHAVE_WAITPID	DOLINTFILTER	| sed -n -f ../sedf.sysvLINTFLAGS	-b -h $(DEFS)LINTLIBSTYLE	SYSVLOCK_STYLE	LOCKFLOG_INN_PROG	LOG_LOCAL7LOG_INN_SERVER	LOG_LOCAL7LSEEKVAL	off_t_PATH_MAILCMD		/usr/bin/mailxNOFILE_LIMIT	200PID_T	pid_tPOINTER	voidPROF	QSORTVAL	voidRANLIB	echoRES_STYLE	TIMESSIZE_T	size_tSLEEPVAL	unsigned intUID_T	uid_tUSE_UNION_WAIT	DONT_EXITVAL	void.DEYou will probably also need to use the \fIbdf\fP command instead of \fIdf\fP..PP.DS.UL "SGI Indigo with IRIX 4.0.1".ta \w'HAVE_ST_BLKSIZE   'uABORTVAL	voidALARMVAL	uintACT_STYLE	MMAPCFLAGS	$(DEFS) -g -wCLX_STYLE	FCNTL_EXITVAL	voidFORK	forkFREEVAL	voidGID_T	gid_tHAVE_ST_BLKSIZE	DONTHAVE_TM_GMTOFF	DONTHAVE_UNISTD	DOLDFLAGS	LIBS	-lmldLINTFILTER	| sed -n -f ../sedf.sysvLINTFLAGS	 $(DEFS)LINTLIBSTYLE	SYSVLSEEKVAL	off_tPOINTER	voidQSORTVAL	voidRANLIB	echoSIZE_T	size_tSLEEPVAL	uintUID_T	uid_t_PATH_COMPRESS	/usr/bsd/compress.DEAlso, the \fIMISSING_xxx\fP parameters should be empty..PP.DS.UL "Solaris 2.X/SunOS 5.X, using SPARCompiler C 2.X".ta \w'HAVE_ST_BLKSIZE   'uDEFS	-I../include -DSUNOS5USE_CHAR_CONST		DOCFLAGS	-O -Xa $(DEFS)LDFLAGSLIBS	-lnsl -lsocket -lelfLINTLIBSTYLE	SYSVLINTFLAGS	-b -h $(DEFS)LINTFILTER	| sed -n -f ../sedf.sysvRANLIB	echoVAR_STYLE	STDARGSSIZE_T	size_tUID_T	uid_tGID_T	gid_tPID_T	pid_tPOINTER	voidALIGNPTR	longLOCK_STYLE	LOCKFHAVE_UNISTD	DOHAVE_SETSID	DOHAVE_TM_GMTOFF	DONTHAVE_WAITPID	DOUSE_UNION_WAIT	DONTHAVE_VFORK	DONTHAVE_UNIX_DOMAIN	DONTCLX_STYLE	FCNTLRES_STYLE	TIMESFDCOUNT_STYLE	SYSCONFABORTVAL	voidALARMVAL	unsignedGETPIDVAL	pid_tSLEEPVAL	unsignedQSORTVAL	voidLSEEKVAL	off_tFREEVAL		void_EXITVAL	voidMISSING_SRC		MISSING_OBJ		PATH_COMPRESS	/bin/compress.DEMake sure you use the C version of subst..PP.DS.UL "System V Release 4".ta \w'HAVE_ST_BLKSIZE   'uFREEVAL	voidGETPIDVAL	longHAVE_TM_GMTOFF	DONTHAVE_WAITPID	DOLDFLAGSLIBS	-lnsl -lsocketLINTFILTER	| sed -n -f ../sedf.sysvLINTFLAGS	-b -h $(DEFS)LINTLIBSTYLE	NONELOCK_STYLE	FCNTLMANPAGESTYLE	NONEMISSING_MAN	strcasecmp.3MISSING_OBJ	strerror.o strcasecmp.oMISSING_SRC	strerror.c strcasecmp.c_PATH_MAILCMD		/usr/bin/mailxPOINTER	voidQSORTVAL	voidRANLIBRES_STYLE	TIMESSIZE_T	unsigned intUSE_CHAR_CONST	DONTUSE_UNION_WAIT	DONT.DEI was never able to get \fIlint\fP to be useful on the machine I used.Some versions of System V (for example, Esix 4.0.3) need the followingLIBS value:.DS.ta \w'HAVE_ST_BLKSIZE   'uLIBS	-lresolv -lsocket -lnsl -L/usr/ccs/lib -lelf.DEOn a Dell System V machine, you have to set \fIHAVE_UNIX_DOMAIN\fP to ``DONT.''.PP.DS.UL "Ultrix 4.x (RISC)".ta \w'HAVE_ST_BLKSIZE   'uALARMVAL	unsigned intFREEVAL	voidLDFLAGSLINTFILTER	| sed -n -f ../sedf.sysvLINTFLAGS	-b -u -x $(DEFS)LSEEKVAL	off_tMISSING_MAN	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -