小强哥博客

小强哥,小强哥博客,技术大咖

树梅派安装mysql

mysql

yum -y install -y mysql mariadb-server
启动服务

systemctl start mariadb.service

添加到开机启动

systemctl enable mariadb.service

修改mysql密码:

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass');

nginx

wget http://nginx.org/download/nginx-1.12.2.tar.gz \
&& tar -xvf nginx-1.12.2.tar.gz \
&& yum -y install pcre-devel zlib-devel gcc
  nginx path prefix: "/usr/local/nginx"
  nginx binary file: "/usr/local/nginx/sbin/nginx"
  nginx modules path: "/usr/local/nginx/modules"
  nginx configuration prefix: "/usr/local/nginx/conf"
  nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
  nginx pid file: "/usr/local/nginx/logs/nginx.pid"
  nginx error log file: "/usr/local/nginx/logs/error.log"
  nginx http access log file: "/usr/local/nginx/logs/access.log"
  nginx http client request body temporary files: "client_body_temp"
  nginx http proxy temporary files: "proxy_temp"
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: "scgi_temp"