
Linux
PHPerJiang
一只有理想的程序猿
展开
-
linux查看程序输出
背景go-link挂了,我想看下日志,但是无从下手, 从梁架构那学来了一个命令 journalctl动态的查看某个程序的输出日志journalctl -n 1000 -f -u go-link.service查看某一个某一时刻的输出日志journalctl -S "2020-07-13 15:37:00"这里记录一下简单用法,我们可以通过journalctl -h命令来深入了解一下具体参数,为了方便我学习,我留下一个传送门https://man.linuxde.net..原创 2020-09-07 09:56:53 · 1805 阅读 · 0 评论 -
Mysql8.0的一个坑
环境:Mysql8.0 、PHP 7.3报错如下:SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client原因如下:mysql8.0使用了新的密码验证插件,caching_sha2_password,而PHP7.3上并不支持,所以要么我们换个支持的PHP版本,要...原创 2019-04-18 11:22:15 · 1202 阅读 · 0 评论 -
systemctl [1]:Failed to start IPv4 firewall with ip tables
启动iptables防火墙的时候出现以下问题Job for iptables.service failed because the control process exited with error code. See "systemctl status iptables.service" and "journalctl -xe" for details.使用systemctl stat...原创 2019-04-22 17:58:30 · 883 阅读 · 0 评论 -
LNMP的安装配置
更换yum源为阿里源#!/bin/bash#备份本地yum源mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak#获取阿里的yum源配置wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Ce...原创 2019-04-10 15:41:44 · 378 阅读 · 0 评论 -
SVN
服务器安装svn服务并配置下载安装svn #下载安装svnyum install subversion#寻找二进制文件which svnserve 创建svn版本库 #创建svn根目录mkdir -p /usr/local/svn#创建版本库svnadmin create /usr/local/svn/app 修改服务配置文件...原创 2019-04-11 13:16:56 · 187 阅读 · 0 评论 -
Linux下安装Linux并给PHP安装php-redis插件
安装Redis服务源码下载redis #下载wget -c http://download.redis.io/releases/redis-4.0.10.tar.gz#解压tar -zxvf redis-4.0.10.tar.gz#安装依赖yum -y install gcc gcc-c++ kernel kernel-devel#切目录并编译cd redis-4...原创 2019-04-10 17:10:05 · 452 阅读 · 0 评论 -
CentOS使用yum安装mysql8.0【传送门】
大神写的教程,mark一下https://blog.youkuaiyun.com/ManagementAndJava/article/details/80039650转载 2019-04-04 15:34:36 · 360 阅读 · 0 评论 -
源码安装Mysql
Centos7源码安装mysql8.0检查centos系统上是否已将有mariadb,有则卸载 #查看是否已安装mariarpm -qa | grep maria#若有则卸载yum -y remove maria* 安装依赖 yum -y install wget cmake gcc gcc-c++ ncurses ncurses-devel libaio...原创 2019-03-11 17:05:20 · 248 阅读 · 0 评论 -
gcc编译出现internal compiler error: Killed的原因及解决方案解决
场景最近想配置一个LNMP环境在Centos7上装mysql8.0的时候出现一个问题internal compiler error: Killed (program cc1plus)这个是个报错,一开始不明白是为啥,后来谷歌了一下,找到了原因 --- 内存不足,因为在gcc编译的时候会大量使用内存,而我的服务器是个学生价淘来的一个CPU一核的服务器,在我装mysql编译的时候出现了这...原创 2019-03-11 15:26:45 · 14565 阅读 · 3 评论 -
查看服务器负载
查看当前物理cpu的个数 cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l 查看当前每个cup的core(核数) cat /proc/cpuinfo| grep "cpu cores"| uniq 查看当前系统整体运行情况------ topa 查看当前系统的平均负载 -...原创 2019-03-11 15:10:11 · 1321 阅读 · 0 评论 -
更换yum源为阿里的yum源
//备份本地yum源mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak //获取阿里的yum源配置wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo //更新cach...原创 2019-03-11 13:40:13 · 159 阅读 · 0 评论