VirtualBox 如何安裝 Centos 7 並設定網路
https://blog.yowko.com/virtualbox-centos-7/
http://jimc1682000.blogspot.com/2015/09/centos-7-virtualbox.html
http://dic.vbird.tw/linux_server/unit10.php #鳥哥
安裝CentOS完成,使用nmtui (NetManager-TextUI)來進行設定
輸入「service network restart」,重啟網路服務
ip a #檢查網路設定
安裝apache
https://www.brilliantcode.net/170/centos-7-install-apache-httpd/
http://softcans.blogspot.com/2016/08/centos7-apache-server-install.html
安裝Apache
yum install httpd mod_ssl openssl
systemctl start httpd #啟動Apache,並且設定為開機自動啟動
systemctl enable httpd
關閉防火牆
systemctl stop firewalld.service
systemctl disable firewalld.service
CentOS 7 開啟/關閉SELinux
https://www.brilliantcode.net/145/centos-7-check-selinux-status-enabled-or-not/
vi /etc/selinux/config
SELINUX=disabled #永久停止SELinux
vi /etc/httpd/conf/httpd.conf #apache設定檔
Options Indexes FollowSymLinks #拿掉Indexes防止目錄列出
修改為
Options FollowSymLinks
<IfModule dir_module> # 設定首頁檔名
DirectoryIndex index.php index.htm index.html
</IfModule>
systemctl restart httpd
CentOS 7 開啟 UserDir 個人網頁模組
https://www.opencli.com/apache/rhel-centos-7-enable-userdir
https://dywang.csie.cyut.edu.tw/dywang/rhel7/node39.html
vi /etc/httpd/conf.d/userdir.conf
#UserDir disabled #註解這一行
UserDir public_html #刪除註解
systemctl restart httpd
https://blog.yowko.com/virtualbox-centos-7/
http://jimc1682000.blogspot.com/2015/09/centos-7-virtualbox.html
http://dic.vbird.tw/linux_server/unit10.php #鳥哥
安裝CentOS完成,使用nmtui (NetManager-TextUI)來進行設定
輸入「service network restart」,重啟網路服務
ip a #檢查網路設定
安裝apache
https://www.brilliantcode.net/170/centos-7-install-apache-httpd/
http://softcans.blogspot.com/2016/08/centos7-apache-server-install.html
安裝Apache
yum install httpd mod_ssl openssl
systemctl start httpd #啟動Apache,並且設定為開機自動啟動
systemctl enable httpd
關閉防火牆
systemctl stop firewalld.service
systemctl disable firewalld.service
CentOS 7 開啟/關閉SELinux
https://www.brilliantcode.net/145/centos-7-check-selinux-status-enabled-or-not/
vi /etc/selinux/config
SELINUX=disabled #永久停止SELinux
vi /etc/httpd/conf/httpd.conf #apache設定檔
Options Indexes FollowSymLinks #拿掉Indexes防止目錄列出
修改為
Options FollowSymLinks
<IfModule dir_module> # 設定首頁檔名
DirectoryIndex index.php index.htm index.html
</IfModule>
systemctl restart httpd
CentOS 7 開啟 UserDir 個人網頁模組
https://www.opencli.com/apache/rhel-centos-7-enable-userdir
https://dywang.csie.cyut.edu.tw/dywang/rhel7/node39.html
vi /etc/httpd/conf.d/userdir.conf
#UserDir disabled #註解這一行
UserDir public_html #刪除註解
systemctl restart httpd
Admin 在 周一 7月 01, 2019 9:39 am 作了第 5 次修改