LinuxSystemes d'exploitation

【Linux】ジャンクのサーバーにlinuxをインストールしてウェブサーバー(Apache httpd)を構築するよ【CentOS Stream9】



『【Linux】ジャンクのサーバーにlinuxをインストールしてRaid5(ソフトウェアRaid)を構築しました』シリーズ:第4回!
今回はウェブサーバーを構築します。
CentOS Stream9 に Apache (httpd) のインストールと設定をします。

目次
———————————————-
0:10 Apache(httpd)をインストール
dnf -y install httpd [Enter]

0:52 FTPの設定をする(/etc/httpd/httpd.confの修正)
vi /etc/httpd/httpd.conf

4:17 httpdの設定を有効にする
systemctl enable –now httpd [Enter]

4:37 httpdを自動起動するようにする
systemctl enable httpd.service [Enter]

4:51 自動起動が有効になっているかどうかを確認するコマンド
systemctl is-enable httpd [Enter]

5:44 ウェブサーバーを使うための準備をする

5:55 ウェブサーバーのルートディレクトリ(/var/www/htmlと/var/www/cgi-bin)のオーナーとグループ(場合によってはアクセス権限)を変更する
chown [アカウント名] /var/www/html [Enter]
chown [アカウント名] /var/www/cgi-bin [Enter]
chgrp [アカウント名] /var/www/html [Enter]
chgrp [アカウント名] /var/www/cgi-bin [Enter]
chmod 755 /var/www/html [Enter]   ← アクセス権限の変更は必要に応じて
chmod 755 /var/www/cgi-bin [Enter]  ← アクセス権限の変更は必要に応じて

6:55 ウェブサーバーの動作確認
———————————————-

Views : 146
linux

Source by Sumire Design Studio

Mourad ELGORMA

Fondateur de summarynetworks, passionné des nouvelles technologies et des métiers de Réseautique , Master en réseaux et système de télécommunications. ,j’ai affaire à Pascal, Delphi, Java, MATLAB, php …Connaissance du protocole TCP / IP, des applications Ethernet, des WLAN …Planification, installation et dépannage de problèmes de réseau informatique……Installez, configurez et dépannez les périphériques Cisco IOS. Surveillez les performances du réseau et isolez les défaillances du réseau. VLANs, protocoles de routage (RIPv2, EIGRP, OSPF.)…..Manipuler des systèmes embarqués (matériel et logiciel ex: Beaglebone Black)…Linux (Ubuntu, kali, serveur Mandriva Fedora, …). Microsoft (Windows, Windows Server 2003). ……Paquet tracer, GNS3, VMware Workstation, Virtual Box, Filezilla (client / serveur), EasyPhp, serveur Wamp,Le système de gestion WORDPRESS………Installation des caméras de surveillance ( technologie hikvision DVR………..). ,

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *