setenforce 0
vi /etc/selinux/config,将SELINUX的值改为"disabled"


rpm -ivh mysql-community-common-5.7.39-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.39-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-compat-5.7.39-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.39-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.39-1.el7.x86_64.rpm
cd /
mkdir mysql
cd mysql
mkdir data
mkdir mysql-bin
chown -R mysql /mysql
chgrp -R mysql /mysql
[mysqld]
datadir=/mysql/data
socket=/var/lib/mysql/mysql.sock
symbolic-links=0
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
log-bin=/mysql/mysql-bin/mysql-bin
server-id=1
binlog_format=ROW
max_connections=200
default-storage-engine=INNODB
character-set-server=utf8
explicit_defaults_for_timestamp=true
[mysql]
default-character-set=utf8
[client]
port=3306
default-character-set=utf8
启动MySQL:systemctl start mysqld.service
查看MySQL:systemctl status mysqld.service
关闭MySQL:systemctl stop mysqld.service
systemctl enable mysqld.service
set global validate_password_policy=0;
set global validate_password_length=6;
set password for root@localhost=password('hyc@2022');
grant all privileges on *.* to root@'%' identified by 'hyc@2022';
flush privileges;
yum install httpd -y
systemctl start httpd
systemctl enable httpd.service
firewall-cmd --permanent --zone=public --add-port=80/tcp
firewall-cmd --permanent --zone=public --add-port=80/udp
firewall-cmd --permanent --zone=public --add-port=443/tcp
firewall-cmd --permanent --zone=public --add-port=443/udp
firewall-cmd --reload

yum -y install epel-release
yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum -y install yum-utils
yum repolist all |grep php
yum-config-manager --enable remi-php74
yum -y install php php-cli php-fpm php-mysql php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json php-redis
php -v
php --modules
systemctl start php-fpm.service
systemctl enable php-fpm.service
vi /var/www/html/testphp.php
输入如下内容
<?php
phpinfo();
?>
浏览器访问http://ip/testphp.php

unzip DisXXXXXX.zip

cp -r /xxxx/upload/* /var/www/html/
cd /var/www/html
chmod 757 -R data/ uc_server/ config/ uc_client/
systemctl restart httpd





cd install/
rm -rf index.php
INSERT INTO `pre_ucenter_members`(`uid`, `username`, `password`, `email`, `myid`, `myidkey`, `regip`, `regdate`, `lastloginip`, `lastlogintime`, `salt`, `secques`) VALUES (2, 'test', '0ee5320c3560cd7e48cdfee7ba0a2b72', 'huyucai@qq.com', '', '', '172.16.6.1', 1661754978, 0, 0, '28225e', '');
INSERT INTO `pre_ucenter_memberfields` VALUES (2, '');
cd /var/www/html
mkdir temp

post_max_size =200M
file_uploads = On
upload_tmp_dir = /var/www/html/temp
upload_max_filesize = 200M