5
管理员
sudo yum -y install httpd httpd-manual httpd-devel mod_ssl mod_perl php-mysqli
sudo systemctl start httpd sudo systemctl enable httpd
systemctl status httpd
wget http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm sudo yum install -y mysql57-community-release-el7-10.noarch.rpm sudo yum install -y mysql-community-server --nogpgcheck
sudo systemctl start mysqld.service
systemctl status mysqld.service
sudo grep "password" /var/log/mysqld.log
mysql -uroot -p
ALTER USER 'root'@'localhost' IDENTIFIED BY '<新密码>';
create database pbootcms;
show databases;
sudo rpm -ivh https://rpms.remirepo.net/enterprise/remi-release-8.rpm --nodeps
sudo dnf update -y dnf libdnf sudo sed -i 's/PLATFORM_ID="platform:al8"/PLATFORM_ID="platform:el8"/g' /etc/os-release sudo yum -y module install php:remi-7.4 sudo sed -i 's/PLATFORM_ID="platform:el8"/PLATFORM_ID="platform:al8"/g' /etc/os-release sudo yum -y install php-gd
sudo systemctl restart httpd
php -v
sudo yum install -y git
cd ~ && git clone https://gitee.com/hnaoyun/PbootCMS.git
sudo cp -r PbootCMS/* /var/www/html/
sudo chmod -R a+w /var/www/html
ls /var/www/html/static/backup/sql/
mysql -uroot -p<您的数据库密码> pbootcms
source /var/www/html/static/backup/sql/pbootcms_v324.sql
sudo bash -c 'cat > /var/www/html/config/database.php' << EOF <?php return array( 'database' => array( 'type' => 'mysqli', // 数据库连接驱动类型:mysqli,sqlite,pdo_mysql,pdo_sqlite 'host' => '127.0.0.1', // 数据库服务器 'user' => 'root', // 数据库连接用户名 'passwd' => 'PassWord1****', // 数据库连接密码 'port' => '3306', // 数据库端口 'dbname' => 'pbootcms' //数据库名称 ) ); EOF
sudo systemctl start httpd
使用道具 举报
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
Archiver|手机版|小黑屋|科技探索者论坛
GMT+8, 2024-11-25 10:41 , Processed in 0.045512 second(s), 20 queries .
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.