编译安装MySQL5.7

编译安装MySQL5.7

1.卸载自带mariadb rpm -qa|grep mariadb rpm -e mariadb-libs --nodeps 2.安装依赖 yum install -y cmake gcc gcc-c++ ncurses-devel bison zlib libxml openssl* autom

Linux实用命令

Linux实用命令

1.随机生成包含大小写字母数字密码 < /dev/urandom tr -dc 0-9-A-Z-a-z|head -c ${1:-18};echo date +%s|md5sum |base64 |head -c 18 ;echo cat /dev/urandom | tr -dc A-Za-z0-

编译安装PHP7.2

编译安装PHP7.2

1.安装依赖 yum install -y gcc gcc-c++ make zlib libzip* zlib-devel \ pcre pcre-devel libjpeg libjpeg-devel libpng libpng-devel \ freetype freetype-devel

Linux 
源码安装Tomcat

源码安装Tomcat

1.下载安装包 cd /data/soft wget https://www.oaroad.com/files/apache-tomcat-9.0.37.tar.gz 2.解压 tar -zxvf apache-tomcat-9.0.37.tar.gz mv apache-tomcat-9.0.37

Linux 
Ubuntu安装google-chrome

Ubuntu安装google-chrome

打开终端,执行以下命令 Chrome32:wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb Chrome64:wget https://dl.google.com/linux/direct/go

Linux 
Windows安装MySQL5.7

Windows安装MySQL5.7

1.下载并解压 下载地址:https://www.oaroad.com/download/mysql-5.7.25-winx64.zip 2.配置环境变量 变量名:MYSQL_HOME 变量值:D:\MySQL 变量名:path 变量值:%MYSQL_HOME\bin% 3.初始化MySQL 以管理

Nginx日志格式说明

Nginx日志格式说明

log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwa

Nginx反向代理配置

Nginx反向代理配置

user nginx; worker_processes auto; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid l

Linux(centos7)系统优化

Linux(centos7)系统优化

#!/bin/bash #author MacBlog #this script is only for CentOS 7.x DATE=`date +%F-%T` #1.添加公网DNS地址 cat >> /etc/resolv.conf << EOF nameserver 114.114.11