标签:mic ble php-mysql etc bsp 远程访问 sql img new
如此简单
第一步:
sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm yum install php php-fpm php-mysql nginx mariadb-server -y yum install php-gd* -y
第二步:
vi /etc/php-fpm.d/www.conf
修改
第三步:
systemctl start php-fpm
systemctl start nginx
如需开通文件上传功能请修改php.ini
vi /etc/php.ini
upload_max_filesize = 100M
简单配置 数据库
systemctl start mariadb
mysql_secure_installation Enter current password for root (enter for none): #初次运行直接回车 Set root password? [Y/n] #是否设置root用户密码,输入y并回车或直接回车 New password: #设置root用户的密码 Re-enter new password: # 再输入一次你设置的密码 Remove anonymous users? [Y/n] # 是否删除匿名用户,回车 Disallow root login remotely? [Y/n] #是否禁止root远程登录,回车, Remove test database and access to it? [Y/n] # 是否删除test数据库,回车 Reload privilege tables now? [Y/n] # 是否重新加载权限表,回车
root 用户支持远程访问
grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant option;
flush privileges;
标签:mic ble php-mysql etc bsp 远程访问 sql img new
原文地址:https://www.cnblogs.com/dongqiliang/p/11921954.html