CentOS 7安装MySQL和Nginx
最近服务器系统重装,记录一下
MySQL
yum
-y install mysql
yum
-y install mysql
-devel
wget http
://dev
.mysql
.com
/get
/mysql
-community
-release
-el7
-5.noarch
.rpm
rpm
-ivh mysql
-community
-release
-el7
-5.noarch
.rpm
yum
-y install mysql
-community
-server
service mysqld start
set password
for 'root'@
'localhost' =password
('新密码');
service mysqld restart
grant
all privileges on
*.* to root@
'%'identified by
'密码';
Nginx
yum -y install nginx
Python3.7
yum
-y install libffi
-devel
wget https
://www
.python
.org
/ftp
/python
/3.7.6/Python
-3.7.6.tgz
tar
-xvzf Python
-3.7.6.tgz
cd Python
-3.7.6
./configure
make
&& make install
Shell脚本
参考: mysql安装
转载请注明原文地址: https://lol.8miu.com/read-17756.html