漂定

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  Lamp+Lnmp

上一页 1 2

服务的搭建
摘要:acl操作# 查看操作的分区支不支持acldumpe2fs -h /dev/sda2 | grep aclDefault mount options: user xattr acl 代表支持acl如果不支持方法一:#mount -o rw,acl /dev/loop0 /mnt 挂载mount -o remount,acl /dev/sda2 #重新挂载并支持acl方法二:vi /etc/fstab/dev/sda2 /web ext4 defaults,acl 0 2这样就支持了标签挂载方法:LABEL=web /backup ext4 defaults 0 2#相关参数说明语法:setf. 阅读全文
posted @ 2013-12-27 10:11 漂定 阅读(342) 评论(0) 推荐(0)

摘要:方案一:# vsftpd.conf文件中的缺省配置anonymous_enable=YES # 允许匿名用户登陆local_enable=YES # 允许本地用户登陆write_enable=YES # 允许上传local_umask=022 # dirmessage_enable=YES # .message隐含文件xferlog_enable=YES # 服务器将启用上传和下载日志connect_from_port_20=YES # FTP服务器将启用FTP数据端口的连接请求xferlog_std_format=YES # FTP服务器将使用标准的ftpd... 阅读全文
posted @ 2013-12-10 22:30 漂定 阅读(420) 评论(0) 推荐(0)

摘要:RewriteEngine onRewriteCond %{REQUEST_FILENAME} !^.*\.(gif|jpg|jpeg|png|swf)$RewriteRule .*$ – [F,L]#############################RewriteEngine on# 1.html news.php?nid=1RewriteRule ^(\d+)\.html$ news.php?nid=$1 [L]RewriteCond 指定条件RewriteCond %{REQUEST_FILENAME} !-f # 请求不是一个文件RewriteCond %{REQUEST_FIL 阅读全文
posted @ 2013-12-10 21:22 漂定 阅读(185) 评论(0) 推荐(0)

摘要:iptables 是从上向下执行的,一但符号规则则跳出ACCEPT 让数据进来(允许)DROP 丢弃数据包(拒绝)REJECT 提示拒绝(不要告诉一声)1.所有进来的数据,都不要iptables -A INPUT -j DROP-A 添加-I 插入-s 来源 -s 192.168.1.2-j 规... 阅读全文
posted @ 2013-12-08 23:39 漂定 阅读(194) 评论(0) 推荐(0)

摘要:一.安装 coreseek1.mmseg安装cd coreseek/mmseg中./configure --prefix=/usr/local/mmseg注:执行后有config.status:error:cannont find input file: src/Makefile.in用automake命令来执行一次然后在执行一下./configure --prefix=/usr/local/mmseg后make && make install2.coreseek安装cd coreseek/csft中./configure --prefix=/usr/local/coresee 阅读全文
posted @ 2013-12-07 18:57 漂定 阅读(513) 评论(0) 推荐(0)

摘要:一.安装tar zvxf proftpd.tar.gz./configure --prefix=/usr/lcoal/proftpdmake && make install二.启动vi /usr/local/proftpd/etc/proftpd.conf找到User nobodyGroup nobody后执行下面命令才能启动,不然报找不到用户和组,这个的用户和组也可以自己新建一个,也可以指定系统已存在的/usr/local/proftpd/sblin/proftpd &查看有没有启动成功方法:1).netstat -ant | grep 212).ps ef | gr 阅读全文
posted @ 2013-12-07 18:11 漂定 阅读(201) 评论(0) 推荐(0)

摘要:一.Rsync同步设定1.安装1). yum install -y rsync2). rpm -ivh rsync3). tar zxvf rsync.tar.gzcd rsync./configure && make && make install2.配置文件vi /etc/rsyncd.conf... 阅读全文
posted @ 2013-12-04 22:32 漂定 阅读(801) 评论(0) 推荐(0)

摘要:方案一:LAMP环境安装一.Apache1.安装yum -y install httpd httpd-devel删除:yum -y erase httpd httpd-devel2.启动和关闭1).apachectl start | apachectl stop2). /etc/init.d/httpd start |/etc/init.d/httpd stop3). service httpd start |service httpd stop## 开机启动程序chkconfig level 35 httpd on3.配置文件vi /etc/httpd/conf/httpd.conf 主配置 阅读全文
posted @ 2013-12-04 15:37 漂定 阅读(280) 评论(0) 推荐(0)

摘要:dd 阅读全文
posted @ 2013-12-03 17:15 漂定 阅读(185) 评论(0) 推荐(0)

摘要:一.先安装libevent依赖包官网:http://libevent.org/去下载1. wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz [Linux上去下载]2. tar zxf l... 阅读全文
posted @ 2013-12-03 15:07 漂定 阅读(346) 评论(0) 推荐(0)

摘要:[高]一.LAMP安装所需要的源代码包列表libxml http://www.xmlsoft.org/downloads.htmllibmcrypt http://sourceforge.net/projects/mcrypt/files/Libmcrypt/zlib http://www.zlib.net/gd http://libgd.bitbucket.org/autoconf http://www.gnu.org/software/autoconf/#downloadingfreetype http://www.freet... 阅读全文
posted @ 2013-11-29 21:48 漂定 阅读(393) 评论(0) 推荐(0)

摘要:一.httpd.confLoadModule php5_module "D:/wamp/php-5.5.0/php5apache2_4.dll"PHPIniDir "D:/wamp/php-5.5.0"AddType application/x-httpd-php .php .phtml二.extra/httpd-vhosts.conf documentroot D:/work/pmd ServerName pmd.com DirectoryIndex index.php index.html index.htm ErrorLog "|D:/w 阅读全文
posted @ 2013-11-26 13:12 漂定 阅读(235) 评论(0) 推荐(0)

摘要:一.关闭iptables1.iptables -F2.service iptables save 保存规则3.service iptables stop 停止二.关闭selinux1.vi etc/selinux/config# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prin... 阅读全文
posted @ 2013-11-25 15:58 漂定 阅读(604) 评论(0) 推荐(0)

摘要:Unix && linux第一:首先要把mysqld停止,最好都kill掉killall mysqld第二:启动mysql,但是要跳过权限表/usr/local/mysql/bin/mysqld_safe --skip-grant-tables &第三:进去mysql,并修改密码/usr/local/mysql/bin/mysql -u rootmysql>use mysql;mysql>update user set password=password("new_pass") where user="root";my 阅读全文
posted @ 2013-11-19 14:17 漂定 阅读(442) 评论(0) 推荐(0)

摘要:1.首先找到php安装目录下的php-cgi.exe 运行起来php-cgi.exe -b 127.0.0.1:9999 -c xxx:/php.ini2.下载windows版本的nginx,下载后,解压到指定的目录后,进行到conf下面编辑nginx.conf,在http{}这个区间的最后(个人喜欢)加入以下代码 autoindex on; # 开启目录浏览 autoindex_exact_size off; #默认为on,显示出文件的确切大小,单位是bytes。 #改为off后,显示出文件的大概大小,单位是kB或者MB或者GB autoindex_localtime... 阅读全文
posted @ 2013-08-22 16:35 漂定 阅读(475) 评论(0) 推荐(0)

上一页 1 2