
服务器设置
lyite.com
能讲出来的
就是学会的
展开
-
虚拟机Centos7 配置固定 IP
查看当前虚拟机的网关信息:编辑文件 (追加或修改以下信息):IPADDR就是自定义的谷固定IP地址vi /etc/sysconfig/network-scripts/ifcfg-ens33ONBOOT=yesZONE=publicIPADDR=192.168.136.66 NETMASK=192.168.136.2GATEMAY=255.255.255.0重启netwo...原创 2019-11-27 23:15:29 · 226 阅读 · 0 评论 -
linux CentOS7 yum安装 MySQL8
安装 MySQL查看系统版本(输出结果会看到 CentOS Linux 7 (Core) )cat /etc/os-release获取 mysql yum repository 链接:https://dev.mysql.com/downloads/repo/yum/cd /usr/local/src/wget https://dev.mysql.com/get/mysql80-comm...原创 2019-11-23 02:56:58 · 137 阅读 · 0 评论 -
Centos Nginx 配置开机启动
nginx的安装见:CentOS 源码编译安装 Nginx创建自启动脚本,拷贝以下脚本内容:vim /etc/init.d/nginx#!/bin/bash# nginx This shell script takes care of starting and stopping# nginx## chkconfig: - 13 68# descrip...原创 2019-11-21 23:38:43 · 2129 阅读 · 0 评论 -
CentOS 源码编译安装 Nginx
本文是介绍使用源码编译安装,包括具体的编译参数信息。当前 CentOS 系统版本为 7.6,安装 Nginx 版本为 1.16.1。安装前编译环境 gcc g++ 开发库之类的需要提前装好。安装其它所需要的扩展库,如:pcre、zlib、openssl安装 make :yum -y install gcc automake autoconf libtool make安装 gcc g...原创 2019-11-21 23:37:40 · 226 阅读 · 0 评论 -
linux centos crontab定时器
这里的定时器是centos7.2自带,并且应该是设置了开机自动启动,本人进服务器就直接输入定时器状态查询语句,结果显示已经启动。[root@**** ~]# cat /etc/crontabSHELL=/bin/bashPATH=/sbin:/bin:/usr/sbin:/usr/binMAILTO=root# For details see man 4 crontabs# ...原创 2019-03-09 01:09:03 · 366 阅读 · 0 评论 -
CentOS7 编译安装MariaDB
1、查看数据库配置文件[root@i****z ~]# find -H /etc/ | grep my.c/etc/pki/tls/certs/make-dummy-cert/etc/pki/tls/certs/renew-dummy-cert/etc/my.cnf/etc/my.cnf.d/etc/my.cnf.d/mysql-clients.cnf2、删除数据库配置文件...原创 2018-09-23 22:07:33 · 1682 阅读 · 0 评论 -
CentOS7 安装Redis PHP扩展Redis
安装Redis下载解压文件Redis官网cd /usr/local/srcwget http://download.redis.io/releases/redis-4.0.11.tar.gztar -zxf redis-4.0.11.tar.gz将redis存放在 /usr/local/redis 下cp redis-4.0.11 /usr/local/redis编译...原创 2018-09-26 23:36:24 · 597 阅读 · 0 评论 -
CentOS7.2 编译安装lnmp(nginx1.15.0,MariaDB10.3.9,PHP7.0.32)
检查更新:[root@i****z ~]# yum check-update安装gcc gcc-c++:[root@i****z ~]# yum -y install gcc gcc-c++安装依赖包:[root@i****z ~]# yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel...原创 2018-09-28 01:23:11 · 722 阅读 · 0 评论 -
CentOS7 部署FTP
1.安装vsftpd# 检查更新[root@i****Z ~]# yum check-updateLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileNetworkManager.x86_64 1:1.10.2-16.el7_5 ...转载 2018-09-17 23:58:07 · 331 阅读 · 0 评论 -
CentOS7 搭建SVN
1、yum安装subversion[root@i****z ~]# yum -y install subversion2、查看安装目录[root@i****z ~]# which svnserve/usr/bin/svnserve3、检查安装版本[root@i****z ~]# svnserve --versionsvnserve, version 1.7.14 (r...原创 2018-09-24 04:31:41 · 294 阅读 · 0 评论 -
CentOS7安装iptables防火墙
1、关闭firewalld# 查看firewalld状态[root@i****Z ~]# firewall-cmd --staterunning# 关闭firewalld[root@i****Z ~]# service firewalld stopRedirecting to /bin/systemctl stop firewalld.service# 禁止firewall...转载 2018-09-13 01:00:09 · 955 阅读 · 0 评论