0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

備忘録 vagrantにてアパッチ画面を表示するまで【centos8】

Posted at

環境
vagrant
CentOs8
Apache

任意のフォルダを選びvagrantを立てる cmdにて

vagrant init generic/centos8

vagrantファイルの編集
以下を追記しSSHできるようにする

  	config.vm.box_download_insecure = true
	config.ssh.username = "vagrant"
	config.ssh.password = "vagrant"

さらに画面表示用にネットワーク設定を行う

config.vm.network "private_network", ip: "192.168.33.10"

ターミナルにログイン後
rootユーザーかsudoで

dnf -y install httpd httpd-tools httpd-devel httpd-manual
#インストール後、起動
systemctl start httpd

あとは適時フォルダの設定を

ファイアーウォールの穴あけを行う

firewall-cmd --add-service=http --permanent
firewall-cmd --reload

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?