比斯米拉...
sudo yum install -y httpd
sudo systemctl enable httpd sudo systemctl restart httpd
sudo firewall-cmd --add-service=http --permanent sudo firewall-cmd --reload
dnf module list php sudo dnf module reset php sudo dnf install @php:7.4 sudo dnf install php-mysqli
setsebool -p httpd_can_network_connect_db 1
chown -r apache:apache * # if you have folder to store uploaded file (optional) sudo chcon -r -t httpd_sys_rw_content_t docsuploaded find /var/www/html -type d -exec chmod 755 {} \; find /var/www/html -type f -exec chmod 644 {} \; systemctl restart httpd
yum install https://dev.mysql.com/get/mysql84-community-release-el8-1.noarch.rpm yum-config-manager --disable mysql-8.4-lts-community yum-config-manager --disable mysql-tools-8.4-lts-community yum-config-manager --enable mysql80-community yum-config-manager --enable mysql-tools-community yum repolist enabled | grep mysql sudo yum module disable mysql yum install mysql-community-server
systemctl start mysqld systemctl status mysqld
sudo grep 'temporary password' /var/log/mysqld.log
请我喝杯咖啡
以上就是在 Oracle Linux 8 上安装 Apache、PHP 和 MySQL的详细内容,更多请关注php中文网其它相关文章!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号