Firefox 提示:此链接不安全,信息可能被盗取

Date 2017-10-16(Mon) By terry Category Work.

image1

Firefox 打开https 链接时会提示,此"链接不安全",有时候会直接造成部分网页无法开。

我们可以选择关闭安全警告提示

  1. 打开firefox 配置 …
more ...

Word发布博客

Date 2017-10-13(Fri) By terry Category Work.
  1. image1
  2. image2
  3. 点击注册,选择"WordPress"
  4. image3
  5. 点击发布
more ...

wordpress 升级插件失败

错误提示:
在更新Encyclopedia Lite时发生了错误:未能找到WordPress内容目录(wp-content)。
  1. 编辑wp-config.php
  2. 在文件末尾插入下面代码
define("FS_METHOD", "direct");
define("FS_CHMOD_DIR", 0777);
define("FS_CHMOD_FILE …
more ...

UBUNTU卸载 libreoffice

sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove
more ...

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 ...

把exe做成windows服务

1. 修改注册表 在“开始→运行”中键入“regedit.exe”,打开“注册表编辑器”,展开分支“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services”
2. 在右侧窗格中显示的就是本机安装 …
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 ...

WWN,WWNN,WWPN区别

WWN

维基百科给出解释是:

A World Wide Name (WWN) or World Wide Identifier (WWID) is a unique identifier used in storage technologies including Fibre Channel, Advanced Technology Attachment (ATA) or Serial Attached SCSI (SAS).

WWN标识适用于包含FC、ATA、SAS在内的存储技术。

这个标识是全球 …

more ...

文件拷贝工具

很好用的文件拷贝工具
windows 平台
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 ...