摘要:
user www www; worker_processes 2; error_log /usr/local/nginx/logs/error.log info ; pid /var/run/nginx.pid; worker_rlimit_nofile 65535; events { use epoll; worker_connections 65535; } http { i...
阅读全文
posted @ 2016-11-24 17:04
JasonChen1030
阅读(4808)
推荐(0)
摘要:
#!/bin/bash #nx Startup script for the Nginx HTTP Server # it is v.0.0.2 version. # chkconfig: - 85 15 # description: Nginx is a high-performance web and proxy server. # It has a lot...
阅读全文
posted @ 2016-11-24 17:00
JasonChen1030
阅读(6741)
推荐(0)
摘要:
ipconfig /flushdns ,DNS缓存就被清除了. ipconfig /displaydns查看DNS缓存
阅读全文
posted @ 2016-11-15 11:03
JasonChen1030
阅读(418)
推荐(0)
摘要:
1、bat延时 xp程序中通过ping 127.0.0.1 -n 20 来实现延时操作,ping本地地址20行。 win7中通过timeout 20 来实现延时20秒。 2、删除指定文件 del /q d:\11\*.* 删除d:\11文件夹下的所有文件,并且不需要提示删除。 /P 删除每一个文件之
阅读全文
posted @ 2016-11-15 03:00
JasonChen1030
阅读(1182)
推荐(0)
摘要:
Centos7 关闭防火墙 CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下 1、直接关闭防火墙 systemctl stop firewalld.service #停止firewall systemctl disable firewalld.serv
阅读全文
posted @ 2016-11-15 01:44
JasonChen1030
阅读(161)
推荐(0)
摘要:
由于yum安装mysql的时候,数据库的data目录默认是在/var/lib下,出于数据安全性的考虑需要把它挪到/data分区。步骤如下: 一、关闭apache和mysql. 复制代码 代码如下: service httpd stop service mysqld stop 二、将/var/lib下
阅读全文
posted @ 2016-11-15 01:44
JasonChen1030
阅读(617)
推荐(0)
摘要:
下载地址:http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-5.7.16-linux-glibc2.5-x86_64.tar.gz 2. 解压 tar xxvf mysql-5.7.12-linux-glibc2.5-x86_64.tar.gz mv mys
阅读全文
posted @ 2016-11-15 01:43
JasonChen1030
阅读(238)
推荐(0)
摘要:
./configure --prefix=/usrc/share/php--with-apxs2=/usr/share/apache2/bin/apxs--with-config-file-path=/usr/share/php/etc --with-mysql=/usr/share/mysql--
阅读全文
posted @ 2016-11-15 01:42
JasonChen1030
阅读(126)
推荐(0)
摘要:
。 (2)在linux下访问windows共享: smbclient -L 192.168.2.12 -U admin //查看共享了那些目录,由此知道主机名为XIAOXING-PC smbclient //192.168.2.12/Users -Uadmin 输入windows密码即可进入 //直
阅读全文
posted @ 2016-11-15 01:41
JasonChen1030
阅读(332)
推荐(0)
摘要:
linux下的回收站在每一个当前用户目录./local/share/Trash中。 也可以给linux添加一个回收站。 mkdir /tmp/trash_tmp 建立一个回收站目录 vi /bin/trash 编辑一个文件 mv $@ /tmp/trash_tmp :wq 保存退出 alias rm
阅读全文
posted @ 2016-11-15 01:37
JasonChen1030
阅读(787)
推荐(0)