海运的博客

Centos安装p7zip

发布时间:October 15, 2011 // 分类:常用软件 // 1 Comment

CentOS自带unzip,不过在解压大压缩卷时提示:error:;Zip file too big (greater than 4294959102 bytes),可安装p7zip解压。

cd /usr/local/src/
wget http://sourceforge.net/projects/p7zip/files/p7zip/9.20.1/p7zip_9.20.1_src_all.tar.bz2
tar jxvf p7zip_9.20.1_src_all.tar.bz2
cd p7zip_9.20.1
make
make install

相关命令:

a: Add files to archive
b: Benchmark
d: Delete files from archive
e: Extract files from archive (without using directory names)
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths

LNMP一键包基本使用教程

发布时间:September 12, 2011 // 分类:Nginx // No Comments

Nginx新建虚拟主机:

/root/vhost.sh
Please input domain:
(Default domain: www.lnmp.org):www.haiyun.me #输入新建虚拟机域名
===========================
domain=www.haiyun.me
===========================
Do you want to add more domain name? (y/n) #是否添加其它域名y或n
y
Type domainname,example(www.haiyun.me):
www.haiyun.me
===========================
domain list=www.haiyun.me
===========================
Please input the directory for the domain:www.haiyun.me :
(Default directory: /home/wwwroot/www.haiyun.me): #网站默认目录
Allow Rewrite rule? (y/n) #是否添加伪静态支持y或n
Please input the rewrite of programme :
wordpress,discuz,typecho,sablog,dabr #这些程序有默认伪静态规则
(Default rewrite: other): #输入该虚拟机伪静态文件名称,如discuz
Allow access_log? (y/n) #是否开启日记
Type access_log name(Default access log file:www.haiyun.me.log): #日记文件目录
最后按确认键创建完成。

LNMP管理:

/root/lnmp stop #停止lnmp
/root/lnmp start #启动lnmp
/root/lnmp restart #重启lnmp

Centos安装Htop

发布时间:September 5, 2011 // 分类:系统调优 // 1 Comment

top是linux下常用的监控程序,htop相当于其加强版,颜色显示不同参数,且支持鼠标操作。
如图:
htop.png
安装支持组件

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
tar xvfz ncurses-5.9.tar.gz
cd ncurses-5.9
./configure
make
make install

安装htop:

wget http://sourceforge.net/projects/htop/files/htop/0.9/htop-0.9.tar.gz
tar zxvf htop-0.9.tar.gz
cd htop-0.9
./configure
make

替代wget的多线程下载工具myget

发布时间:September 5, 2011 // 分类:常用软件 // No Comments

wget http://myget.sourceforge.net/release/myget-0.1.2.tar.gz
tar zxvf myget-0.1.2.tar.gz
cd myget-0.1.2
./configure
make
make install

命令

mytget -n 10 http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.gz

也可使用lftp多线程下载:

lftp -c "pget -n 10 http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.gz"

Centos服务器yum安装LAMP环境

发布时间:September 5, 2011 // 分类:Apache // No Comments

安装Apache

yum -y install httpd

安装Mysql

yum -y install mysql-server
/etc/init.d/mysqld start

设置Mysql密码

/usr/bin/mysqladmin -u root password 'newpassowrd'

安装PHP

yum -y install php php-mysql
/etc/init.d/httpd start

设置开机启动

chkconfig httpd on
chkconfig mysqld on
分类
最新文章
最近回复
  • opnfense: 谢谢博主!!!解决问题了!!!我之前一直以为内置的odhcp6就是唯一管理ipv6的方式
  • liyk: 这个方法获取的IPv6大概20分钟之后就会失效,默认路由先消失,然后Global IPV6再消失
  • 海运: 不好意思,没有。
  • zongboa: 您好,請問一下有immortalwrt設定guest Wi-Fi的GUI教學嗎?感謝您。
  • 海运: 恩山有很多。
  • swsend: 大佬可以分享一下固件吗,谢谢。
  • Jimmy: 方法一 nghtp3步骤需要改成如下才能编译成功: git clone https://git...
  • 海运: 地址格式和udpxy一样,udpxy和msd_lite能用这个就能用。
  • 1: 怎么用 编译后的程序在家里路由器内任意一台设备上运行就可以吗?比如笔记本电脑 m参数是笔记本的...
  • 孤狼: ups_status_set: seems that UPS [BK650M2-CH] is ...
归档