Centos 源

为了可以使用 CentOS 系统的包管理工具去安装更多的东西,我们需要单独安装一些额外的软件仓库。

EPEL

sudo yum install epel-release -y
Ce
IUS

sudo yum …

more ...

vsftpd 服务器报错:500 OOPS: vsftpd: refusing to run with writable root inside chroot()

今天安装vsftp服务器,在修改了 chroot_local_user 属性以后,发现进行客户端访问的时候会报错:500 OOPS: vsftpd: refusing to run with writable root inside chroot()
到网上查了资料,得到解 …
more ...

php-opcache php缓存

yum install php70u-opcache

vim /etc/php.ini

末尾添加
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
more ...

phpmyadmin提示The mbstring extension is missing

centos7 装了nginx 和 mariadb 以及php71u-fpm后,我开始尝试使用phpmyadmin 去连接数据库。

出现如下错误:
image1
网上着直接安装mbstring
yum install php-mbstring

于是搜 …

more ...

centos7 安装 mariadb 出现冲突

今天在一台centos7的机器上安装mariadb 出现故障:

[root@localhost ~]# yum install  mariadb101u-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.yun-idc.com
 * epel: mirror.premi.st
 * extras: mirrors.tuna.tsinghua.edu.cn
 * ius: mirrors.tuna.tsinghua.edu.cn
 * updates: mirrors.nwsuaf.edu.cn
 * webtatic …
more ...

Centos7 安装PHP7.0

默认centos7的源中php的版本是5.6的

秉着使用最新的版本的原则,此次想要安装PHP7.0

添加源:

rpm -Uvh https://centos7.iuscommunity.org/ius-release.rpm
[root@localhost ~]# rpm -Uvh https://centos7.iuscommunity.org/ius-release.rpm
Retrieving https://centos7.iuscommunity.org …
more ...

Nginx 出现413 Request Entity Too Large得解决方法

今天处理文件上传功能的时候,总是提示接口错误,很是郁闷。换小文件发现没有问题,所以问题肯定出现在文件大小上。切 …

more ...

nginx 出现an upstream response is buffered to a temporary file

今天检查机器运行情况的时候在日志里看到这么一条:

2017/02/14 11:25:05 [warn] 32254#32254: *34 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/3/00/0000000003 while …
more ...

Nginx 配置虚拟主机

  1. 当前nginx的版本
[root@localhost ~]# nginx -v
nginx version: nginx/1.10.3
2. 查看nginx 目录结构
[root@localhost ~]# cd /etc/nginx/
[root@localhost nginx]# tree ../nginx
../nginx
├── conf.d
│   ├── default.conf
│   └── default.conf.rpmsave
├── fastcgi_params
├── koi-utf
├── koi-win
├── mime.types
├── modules -> ../../usr/lib64/nginx/modules
├── nginx …
more ...

阿里云 ECS 升级内核

在更新系统的软件包时,发现如下错误:

[root@www]# yum -y update
Loaded plugins: fastestmirror
Setting up Update Process
Determining fastest mirrors
.
.
.
Error: Package: util-linux-ng-2.17.2-12.24.el6_8.1.x86_64 (updates)
           Requires: kernel >= 2.6.32-642
           Installed: kernel-2.6.32-279 …
more ...

ubuntu 命令行修改提示符

image1

修改.bashrc

# vim /root/.bashrc

找到

PS1='${debian_chroot:+($debian_chroot)}\A\u@\h:\W\#\$ '
export PS1='\[\e[30;0m\]\u@\h \w \$: '
代码的格式可以自定义,下面是网上找的:
转移符的意思:
/d :代表日 …
more ...

ubuntu 16.04 安装django

ubuntu合两个版本的python ,同时又python2 和python3

当前系统版本

terry@vUBox:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

1.启动python2

terry@vUBox:~$ python
Python 2.7.12 (default, Nov 19 …
more ...

Nagiosgraph 组件安装

官方介绍:

https://exchange.nagios.org/directory/Addons/Graphing-and-Trending/nagiosgraph/details#_ga=1.41004834.1827091096.1474275709

下载地址:

http://nagiosgraph.sourceforge.net/

下载Nagiosgraph

[root@vnagios tmp]# wget http://nchc.dl.sourceforge.net/project/nagiosgraph/nagiosgraph/1.5.2/nagiosgraph-1.5.2.tar.gz

解 …

more ...

Nagios 监控windows 主机

之前我们装完nagios core ,我们查看host 页面只有一个主机,就是nagios 服务器本身

nagios3

现在我们来让nagios 监控window 主机
1. 编辑nagios 配置文件
vi …
more ...

Nagios Core 安装

Nagios

Nagios

参考官方安装文档

安装系统Centos7

[root@vnagios ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
  1. 安装需要用到的软件包:
yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-snmp unzip …
more ...

php 时区设置

今天在安装centreon时,发现要配置PHP的时间

image1

于是登录到centreon的服务器上找到并编辑php.ini

[root@localhost ~]# vim /etc/php.ini

修改date.timezone = 'asia/shanghai'

more ...

Linux 下的博客发布工具QTM

QTM的官方地址:
但是QTM 不支持 centos

我们可以采用fedroa的源进行安装

  1. [root@localhost ~]# vim /etc/yum.repos.d/QTM.repo
    

2.添加下面的内容

[home_IndigoJo]
name=QTM (Fedora_20)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/home …
more ...

Centos 桌面图标

Centos7 中所有的应用程序都不会在桌面上显示,我们需要在桌面上建立相应的快捷放松

  1. 进入图标目录
[root@w-r9t1w96 applications]# cd /usr/share/applications/
[root@w-r9t1w96 …
more ...

centos7卸载libreoffice

可以尝试
yum erase libreoffice\*
more ...

Centos7 安装遨游浏览器

由于chrome 无法正常更新,firefox 有时候经常假死,在linux 平台上使用浏览器,一直很麻烦

不过偶然间发现,遨游浏览器居然有linux版本

官网 …
more ...