Quantcast
Channel: ubuntu –雨泽博客
Browsing latest articles
Browse All 9 View Live

ubuntu+apache2环境wordpress固定链接404的问题

我的系统是ubuntu,自己配置的Apache、PHP、Mysql系统架构,或使用的某些安装包,可能会有这个问题,本人曾经遇到过,解决方法如下: 1.  首先.htaccess文件要给权限666 2. AllowOverride Not Enabled 网上教程是修改/etc/httpd.conf 我的貌似叫/etc/apache2.conf 这个里面是修改全局的 其实这个不用改...

View Article



Ubuntu系统启用Apache Mod_rewrite模块

在终端中执行 sudo a2enmod rewrite 指令后,即启用了 Mod_rewrite 模块。 另外,也可以通过将 /etc/apache2/mods-available/rewrite.load 连接到 /etc/apache2/mods-enabled/rewrite.load 来打开 Mod_rewrite 模块。用指令操作就是: sudo ln -s...

View Article

ubuntu启用apache的mod_headers和mod_expires

ubuntu部署好wordpress后,发现插件wp_super_cache里面有几个警告,请启用mod_expires和mod_headers. 可以按照以下命令,启用apache的缓存 root@vr:~# a2enmod headers Enabling module headers. To activate the new configuration, you need to run:...

View Article

ubuntu搭建LEMP环境,解决 fpm监听失败

1.安装mysql sudo apt-get install mysql-server mysql-client 安装过程中要输入root用户的密码。 2.安装nginx sudo apt-get install nginx 2.安装php    1.  sudo apt-get install php5-fpm php5-cgi php5-mysql php5-fpm php5-curl...

View Article

ubuntu不小心删除了libc-bin的恢复办法

不小心删除了 libc-bin, 使用apt-get install 命令都会报错,错误如下: Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16. Use of uninitialized value $Debconf::Encoding::charmap in...

View Article


iptables 添加,删除,查看,修改

iptables是linux系统自带的防火墙,功能强大,学习起来需要一段时间,下面是一些习iptables的时候的记录。如果iptables不熟悉的话可以用apf,是一款基于iptables的防火墙,挺好用的。请参考:linux apf 防火墙 安装 配置 一,安装并启动防火墙 [root@linux ~]# /etc/init.d/iptables start...

View Article

nginx报错accept() failed (24: Too many open files)

查看了一下nginx的error.log日志文件,发现有很多像下面这样的报错: accept() failed (24: Too many open files) 一看就知道系统对打开文件数目做了限制,用下面命令 ulimit -n    查看当前用户的 命令查看了一下,结果显示文件打开数目限制为1024,我们需要让这个数字更大一些,好让我们的网站访问并发更高一些。 下面是修改 ulimit...

View Article

在ubuntu中mount挂载NTFS分区

ubuntu已经默认安装了ntfs-3g 支持读写ntfs 格式分区,不过建议重要数据储存在ext3格式分区上毕竟linux比windows安全,而且ntfs会产生更多磁盘碎片。 先用fdisk -l 命令查看分区 或用 添加/删除 分区编辑器(安装后在系统-系统管理下看到)查看分区 挂载ntfs分区:...

View Article


ubuntu解压命令全览

.tar 解包:tar xvf FileName.tar 打包:tar cvf FileName.tar DirName (注:tar是打包,不是压缩!) --------------------------------------------- .gz 解压1:gunzip FileName.gz 解压2:gzip -d FileName.gz 压缩:gzip FileName .tar.gz 和...

View Article

Browsing latest articles
Browse All 9 View Live




Latest Images