最新 分享

Publish our news and thoughts with all.

Popular Articles

Recent Stories

CentOS 安装LNMP环境

There is no translation available.

阿里云的云服务器(ECS)可以选择多种操作系统,打算用它运行 Drupal 或者 WordPress ,你最好选择 Linux 系统,这篇文章的演示是基于阿里云的 CentOS 操作系统的服务器。我们在上面搭建一个 nginx + mysql + php-fpm 的环境,这就是常说的 LNMP 。我们不过多解释什么是什么,而是着重讲流程与方法,想了解具体的细节,去搜索下吧:)这个手册是在阿里云上测试的,不过应该也适用于其它使用 CentOS 系统的服务器。

apache 避免暴露网站目录

There is no translation available.

在.htaccess文件末尾增加“Options All -Indexes”

ubuntu服务器安全检查命令

There is no translation available.

1.top    查看内存、cpu、进程

2.netstas    查看端口信息

linux ubuntu 查找文件路径的命令

There is no translation available.

find / -name
最近找不到my.cnf,可以用这个命令:
find / -name my.cnf
结果:
/etc/mysql/my.cnf

 

MySQL增加普通用户后无法远程本地登陆问题的解决方法

There is no translation available.

增加普通用户后,执行: mysql> use mysql mysql> delete from user where user=''; mysql> flush privileges; 意思是删除匿名用户。

ubuntu下搭建vsftpd过程概述

There is no translation available.

一、安装、重装、卸载vsftp

全新安装:apt-get install vsftpd

ubuntu zip压缩当前文件夹

There is no translation available.

命令如下:zip -r %%.zip ./

最近项目用到的mysql语句

There is no translation available.

建立表:

CREATE TABLE IF NOT EXISTS `postdata` ( `id` int(11) NOT NULL auto_increment, `city` varchar(255), `time` varchar(255), `code` varchar(255), `school` varchar(255), `pay` varchar(255), `state` varchar(255), `updatetime` datetime PRIMARY KEY (`code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;