问题 问答题

Apache服务器的设置文件位于/usr/local/apache/conf/目录下,传统上使用3个配置文件 httpd.conf,access.cord和srm.conf来配置Apache服务器的行为。httpd.conf提供了最基本的服务器配置,是对守护程序httpd如何运行的技术描述:srm.conf是服务器的资源映射文件,告诉服务器各种文件的MIME类型,以及如何支持这些文件;access.cord用于配置服务器的访问权限,控制不同用户和计算机的访问限制;这3个配置文件控制着服务器的各个方面的特性,因此为了正常运行服务器便需要设置好这3个文件。
1.[问题1]
如何设置httpd.conf,使得Apache服务器监听在特定的端口

答案

参考答案:修改httpd.conf,在里面使用 BindAddress 192.168.0.1
这样就能使得Apache只监听外界对192.168.0.1的http请求。如果使用:
BindAddress*
就表明apache监听所有网络接口上的http请求。
当然用防火墙也可以实现。

单项选择题 A3/A4型题
填空题

We might marvel at the process made in every field of study, but the method of testing a person’s knowledge and ability remain as primitive as ever they were. It really is extraordinary that after all these years educationists have still failed to devise anything more efficient and reliable than examinations.
41. ______
They may be a good means of testing memory, or the knack of working rapidly under extreme pressure, but they can tell you nothing about a person’s true ability and aptitude.
42. ______
Your whole future may be decided in one fateful day. It doesn’t matter that you weren’t feeling very well, or that your mother died. Little things like that don’t count: the exam goes on. no one can give of his best when he is in mortal terror, or after a sleepless night, yet this is precisely what the examination system expects him to do. The moment a child begins school, he enters a world of vicious competition where success and failure are clearly defined and measured. Can we wonder at the increasing number of "dropouts": young people who are written off as utter failures before they have even embarked on a career Can we be surprised at the suicide rate among students
43. ______
Examinations do not motivate a student to read widely, but to restrict his reading; they do not enable him to seek more and more knowledge, but induce cramming. They lower the standards of teaching, for they deprive the teacher of all freedom. Teachers themselves are often judged by examination results and instead of teaching their subjects, they are reduced to training their students in exam techniques which they despise. The most successful candidates are not always the best educated; they are best trained in the technique of working under duress.
44. ______
Examiners are only human. They get tried and hungry; they make mistakes. Yet they have to mark stacks of hastily scrawled scripts in a limited amount of time. They work under the same sort of pressure as the candidates. And their word carries weight. After a judge’s decision you have the right of appeal, but not after an examiner’s.
45. ______
Is it cynical to suggest that examinations are merely a profitable business for the institutions that run them This is what it boils down to in the last analysis. The best comment on the system is this illiterate message recently scrawled on a wall: "I were a teenage drop-out and now I am a teenage millionaire."
[A] A good education should, among other things, train you to think for yourself. The examination system does anything but that. What has to be learnt is rigidly laid down by a syllabus, so the students are encouraged to memorize.
[B] The results on which so much depends are often nothing more than a subjective assessment by some anonymous examiner.
[C] Examinations can be taken as a test of a student’s knowledge about a particular subject which would tell the student where he stands among others, and how much he knows and how much he ought to know.
[D] As anxiety-makers examinations are second to none. That is because so much depends on them. They are the mark of success or failure in our society.
[E] The student appearing for the exam takes it under extreme tension and pressure because he knows that he has only one chance to prove his worth and if he fails, he will be left behind for the rest of his life.
[F] For all the pious claim that examinations test what you know, it is common knowledge that they more often do the exact opposite.
[G] There must surely be many simpler and more effective ways of assessing a person’s true abilities.