随笔分类 -  CentOS

摘要:location ^~ /sub/ { set $subroot /home/www/sv8/wwwroot/; root $subroot; index index.php index.html; location ~ \.php { fastcgi_pass php5:9000; set $sc 阅读全文
posted @ 2021-10-18 21:16 3000 阅读(275) 评论(0) 推荐(0)
摘要:docker run -tid --name baota -p 80:80 -p 443:443 -p 8888:8888 -p 888:888 --privileged=true --shm-size=1g --restart always -v e:\wwwroot:/www/wwwroot p 阅读全文
posted @ 2021-10-05 10:10 3000 阅读(141) 评论(0) 推荐(0)
摘要:开始以为是vim 设置编码的问题 :网上搜 改 .vimrc 无效!!!后转战 是不是系统里面没有中文字体1、先从你本机 C:\Windows\Fonts 拷贝或者网络上下载你想要安装的字体文件(*.ttf文件)到/usr/share/fonts/chinese/TrueType 目录下(如果系统中... 阅读全文
posted @ 2016-01-21 16:37 3000 阅读(1599) 评论(0) 推荐(0)
摘要:---恢复内容开始---#wget http://nchc.dl.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-2.92/postfixadmin-2.92.tar.gz//下载postfixadmin管理程序,放到we... 阅读全文
posted @ 2015-08-05 08:08 3000 阅读(589) 评论(0) 推荐(0)
摘要:又要重新装一台阿里云服务器。开始想用脚本,但发现脚本的程序版本都比较低 还是手动编译最新版本开始前更新服务器到最新版本#yum makecache#yum update//分区挂数据盘#df -h //查是否分区#fdisk -l //查硬盘#fdisk /dev/xvdb1 (n,p ...w,q... 阅读全文
posted @ 2015-06-12 17:51 3000 阅读(1027) 评论(0) 推荐(0)
摘要:在阿里云服务器上部署Git升级centos 自带的Gityum库自带版本为git1.7.1-3.el6_4.1。-------------------升级------------------------如已安装GIT先删除sudo yum remove git编译安装Git以前编辑安装过php,所以... 阅读全文
posted @ 2015-05-07 11:41 3000 阅读(442) 评论(0) 推荐(0)
摘要:centos 6.5 最小化安装进入系统 手动开启网卡#ifconfig eth0 //(默认会自动获得ip)修改网站配置文件,默认开启#cd /etc/sysconfig/network-scripts#vi ifcfg-eth0ONBOOT=yes更新yum缓存yum makecache升级系统... 阅读全文
posted @ 2014-09-22 08:41 3000 阅读(336) 评论(0) 推荐(0)
摘要:ls | sed -n '/[A-Z]/s/.*/mv & \L&/e'公司以前用的windows server 服务器 文件大小写都一样。 新迁移到centos 服务器上,发现有些上传图片是大写的扩展名。 1 ';37 }38 }39 40 ?>在本地调试是ok的,但在服务器上不行。发现是... 阅读全文
posted @ 2014-09-16 17:04 3000 阅读(610) 评论(0) 推荐(0)
摘要:安装阿里云提供的Linux一键安装web环境全攻略,本想着会有最复杂 ,没想到阿里云工程师提供的包没有任何限制(开始以为只能在阿里去的主机上使用)。开源的精神就是好(注:我是伸手党)。环境 vmware + centos 6.5 最小安装版软体:http://files.cnblogs.com/fi... 阅读全文
posted @ 2014-06-08 19:50 3000 阅读(1385) 评论(0) 推荐(0)
摘要:环境:vmware +centos6.5添加两个虚拟网卡。一个自动获取ip(用于上网-桥接) 一个手动(与主机通信用于ssh-NAT)。 因为自已手动改了一下ifcfg-eth0里面的HWADDR地址。造成 eth0网卡不能识别。多出一个eth2的网卡。配置eth2网卡,可以自动获取到ip地址 但用... 阅读全文
posted @ 2014-06-07 18:16 3000 阅读(488) 评论(0) 推荐(0)
摘要:转自:http://www.netingcn.com/aliyun-iptables.html公司的产品一直运行在云服务器上,从而有幸接触过aws的ec2,盛大的云服务器,最近准备有使用阿里云的弹性计算(云服务器)。前两种云服务器在安全策略这块做的比较好,提供简单明了的配置界面,而且给了默认的安全策略,反观阿里云服务器,安全策略需要自己去配置,甚至centos机器上都没有预装iptables(起码我们申请两台上都没有),算好可以使用yum来安装,安装命令如下:yum install -y iptables (小白可先用 rpm -qa | grep iptables 查看是否已安装;)ip.. 阅读全文
posted @ 2013-10-18 16:41 3000 阅读(3013) 评论(0) 推荐(0)
摘要:如果担心有非法用户闯入系统,最简单的办法就是用w命令来检查。如果真的看到有非法用户在你的系统上,可以立即 kill 他的进程。用vi/etc/passwd 命令把他的口令修改为“*”,或者把shell改为/sbin/nologin先用w命令查看该用户tty号,然后用fuser -k tty号(或显示pts/*)就可以踢出了即先用w命令查看在线用户,然后pkill -kill -t tty 如pkill -kill -t pts/1 阅读全文
posted @ 2013-10-18 14:14 3000 阅读(457) 评论(0) 推荐(0)
摘要:版本:Apache Version Apache/2.4.6 (Ubuntu)系统: ubuntn12.04在/etc/apache2/sites-enabled/sudo cp 000-defaut.conf sv1.confsudo vim sv1.conf ServerName www.sv1.com ServerAdmin webmaster@localhost DocumentRoot /home/www/sv1 DirectoryIndex index.html Options FollowSymLinks AllowOverride All Require all gra... 阅读全文
posted @ 2013-09-23 08:43 3000 阅读(1334) 评论(0) 推荐(1)
摘要:星际译王是一个Linux下很好的翻译软件。我的系统是centos6.2 32位版。本来在http://code.google.com/p/stardict-3/downloads/list 上下的源码包安装。结果每次无法./configure过去。提示configure: error: Enchant library not found or too old. Use --disable-spell to build without spell plugin.加上--disable-spell参数又出现新的错误。网上方法都试了,一直未搞定。后来,找到了rpm包后很容易就装好了。1,下载地址(选 阅读全文
posted @ 2013-09-10 20:30 3000 阅读(565) 评论(0) 推荐(0)
摘要:yum install http://people.centos.org/hughesjr/chromium/6/i386/RPMS/chromium-28.0.1500.45-205727.i686.rpmLoaded plugins: fastestmirror, refresh-packagekitLoading mirror speeds from cached hostfile* base: mirrors.grandcloud.cn* extras: mirrors.grandcloud.cn* rpmforge: ftp.lug.ro* updates: mirrors.gran 阅读全文
posted @ 2013-09-10 19:16 3000 阅读(394) 评论(0) 推荐(0)