�J���҂Ƃ��ď�Ƀv���O���}�ɓO���Ă��܂��Ă��Ȃ����낤���B��������ƁA�ǂ����Ă��T�[�o�m�����s���������ɂȂ�i�ҏW���j
�@��1��uWeb�T�[�o����n�߂悤�v�Ŏ菇��ǂ��Đݒu����/etc/rc.d/init.d/httpd�Ƃ���Apache�̐���X�N���v�g�́A�V�X�e���N�����ɂ�����Apache�̎����N���ɗ��p�ł��܂��B
�@����́ALinux�̃V�X�e���N�����Ɋe��̃T�[�o�v���O�����������I�ɋN����������@���AApache���ɏЉ�Ă����܂��傤�B
�@�܂��A/etc/rc.d/init.d/�z���ɁA�T�[�o����X�N���v�g��ݒu���܂��B����X�N���v�g�̓��e�̓T�[�o�v���O�����ɂ��قȂ�܂����A�����̃p�b�P�[�W�ł̓C���X�g�[�����Ɏ����Őݒu����邩�A�܂��̓T���v��������܂��B����̗�ł́A���łɏЉ���菇��/etc/rc.d/init.d/httpd��ݒu�ς݂ł��B
�@���ɁA/etc/rc.d/rc[0-6].d/ �Ƃ����f�B���N�g���i[0-6]�̕����ɂ̓V�X�e���̃������x����\������������܂��j�ɁA���̖����K���ɏ]���āA��قǂ̃T�[�o����X�N���v�g�ւ̃V���{���b�N�����N���쐬���܂��B���̃V���{���b�N�����N���ARPM�ł̃C���X�g�[���ł͎����Őݒu�����ꍇ������܂��B
�@Apache���ɁARPM�ŃC���X�g�[����������̏�ԂŊm�F���Ă݂�ƁA�ȉ��̂悤�ɃV���{���b�N�����N���쐬����Ă��邱�Ƃ��m�F�ł��܂��B
# find /etc/rc.d/rc*.d -name "*httpd*" -ls 2491130 0 lrwxrwxrwx 1 root root 15 7�� 29 16:05 /etc/rc.d/rc0.d/K15httpd -> ../init.d/httpd 2491131 0 lrwxrwxrwx 1 root root 15 7�� 29 16:05 /etc/rc.d/rc1.d/K15httpd -> ../init.d/httpd 2491132 0 lrwxrwxrwx 1 root root 15 7�� 29 16:05 /etc/rc.d/rc2.d/K15httpd -> ../init.d/httpd 2491133 0 lrwxrwxrwx 1 root root 15 7�� 29 16:05 /etc/rc.d/rc3.d/K15httpd -> ../init.d/httpd 2491134 0 lrwxrwxrwx 1 root root 15 7�� 29 16:05 /etc/rc.d/rc4.d/K15httpd -> ../init.d/httpd 2491135 0 lrwxrwxrwx 1 root root 15 7�� 29 16:05 /etc/rc.d/rc5.d/K15httpd -> ../init.d/httpd 2491136 0 lrwxrwxrwx 1 root root 15 7�� 29 16:05 /etc/rc.d/rc6.d/K15httpd -> ../init.d/httpd
�@K�Ŏn�܂�V���{���b�N�����N�́A�����N��̐���X�N���v�g��ʂ��āA�T�[�o�v���O�������~�����邽�߂̂��̂ł��B��L�̗�ł́A���ׂẴ������x����Apache�������N�����Ȃ��ݒ�ɂȂ��Ă��邱�Ƃ�������܂��B
�@Apache���\�[�X����C���X�g�[�������ꍇ�ɂ́A��������/etc/rc.d/init.d/httpd�������ł͐ݒu����܂���̂ŁA���R�V���{���b�N�����N�����݂��܂���B
�@�T�[�o�v���O�����������N�����������Ƃ��́A�N���ɑΉ����郉�����x���i�������x��3��5�j�̃f�B���N�g����S����n�܂�V���{���b�N�����N���쐬���܂��B�܂��A���̃f�B���N�g����K�Ŏn�܂�V���{���b�N�����N�͍폜���܂��B
�@�Ȃ��AK��S�ɑ��������́A�X�N���v�g�����s����鏇���ł��B�ʂ̃T�[�r�X�Ɉˑ�����T�[�o�v���O����������܂��̂ŁA�N����I���̏������w��ł���悤�ɂȂ��Ă��܂��B
�@�V���{���b�N�����N��ln�R�}���h�Ŏ蓮�ō쐬���Ă��悢�̂ł����Achkconfig�Ƃ����R�}���h�𗘗p����ƕ֗��ł��Bchkconfig�́A�e�������x���ł̃T�[�r�X�̗L���E�������ꌳ�Ǘ��ł���c�[���ł��B
�@Apache��RPM����C���X�g�[�������ꍇ�ɂ́Achkconfig�̊Ǘ��ΏۂƂ���/etc/rc.d/init.d/httpd�����łɊ܂܂�Ă��܂��̂ŁA�ȉ��̃R�}���h�ŋN���ݒ���m�F�ł��܂��B
# chkconfig --list | grep httpd httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
�@��قǃV���{���b�N�����N�̌����Ŋm�F�ł����Ƃ���A���ׂẴ������x����Apache���N�����Ȃ��悤�ɂȂ��Ă��邱�Ƃ�������܂��B
�@Apache���\�[�X����C���X�g�[�������ꍇ�ɂ́A�O��̎菇�Őݒu����/etc/rc.d/init.d/httpd��chkconfig�ɔF��������K�v������܂��B/etc/rc.d/init.d/httpd���J���āA�擪�̃R�����g�u���b�N�̍Ō゠����ɁA�ȉ���2�s�̃R�����g���L�q���Ă��������B
#chkconfig: - 85 15 #description:Apache
�@85�͋N�����̃X�N���v�g���s�����A15�͏I�����̃X�N���v�g���s�����ł��i�����ł�RPM�̏ꍇ�̃f�t�H���g�l�𗬗p���܂����j�B�L�q������Achkconfig�ɐ���X�N���v�g��F�������܂��B�ȉ��̃R�}���h�����s���Ă��������B
chkconfig --add httpd
�@����ŁARPM�ŃC���X�g�[�������ꍇ�Ɠ������Achkconfig����Apache�̋N���ݒ肪�\�ɂȂ�܂����B�����ɐ�قǂ́uchkconfig --list | grep httpd�v�����s���Ă݂Ă��������BRPM�̏ꍇ�Ɠ����\���������AApache��chkconfig�̊Ǘ��ΏۂƂ��ĔF�����ꂽ���Ƃ��m�F�ł��܂��B
�@�����܂ł̂��V���Ă��ł�����A�Ō�ɁA����̃������x���ł̃V�X�e���N������Apache�������I�ɋN������悤��chkconfig�Őݒ肵�܂��B�������x��3�i�e�L�X�g���[�h�ł̋N���j����у������x��5�iGUI���[�h�ł̋N���j�̂Ƃ��ɁAApache���N������悤�ɂ��Ă݂܂��傤�B�ȉ��̂悤�ɃR�}���h�����s���܂��B
chkconfig --level 35 httpd on
�@���炽�߂ċN���ݒ���m�F���Ă݂܂��B
# find /etc/rc.d/rc*.d -name "*httpd*" -ls 3572341 0 lrwxrwxrwx 1 root root 15 7�� 29 17:48 /etc/rc.d/rc0.d/K15httpd -> ../init.d/httpd 3572455 0 lrwxrwxrwx 1 root root 15 7�� 29 17:48 /etc/rc.d/rc1.d/K15httpd -> ../init.d/httpd 3572459 0 lrwxrwxrwx 1 root root 15 7�� 29 17:48 /etc/rc.d/rc2.d/K15httpd -> ../init.d/httpd 3572460 0 lrwxrwxrwx 1 root root 15 7�� 29 18:40 /etc/rc.d/rc3.d/S85httpd -> ../init.d/httpd 3572461 0 lrwxrwxrwx 1 root root 15 7�� 29 17:48 /etc/rc.d/rc4.d/K15httpd -> ../init.d/httpd 3572462 0 lrwxrwxrwx 1 root root 15 7�� 29 18:40 /etc/rc.d/rc5.d/S85httpd -> ../init.d/httpd 3572463 0 lrwxrwxrwx 1 root root 15 7�� 29 17:48 /etc/rc.d/rc6.d/K15httpd -> ../init.d/httpd
# chkconfig --list | grep httpd httpd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
�@�ȏ�ŃV�X�e���̋N������Apache�������I�ɋN�������悤�ɂȂ�܂����B�����ŏЉ���ݒ���@�́A�����̃T�[�o�v���O�����ŋ��ʂƂȂ�܂��̂ŁA�d�g�݂�ݒ�菇�𗝉����Ă����܂��傤�B
Copyright © ITmedia, Inc. All Rights Reserved.
��IT eBook