ITeye博客

Lasol's Tech. Life

lasol · 共 23 篇文章

CUPS的配置文件

编辑cupsd.conf vi /etc/cups/cupsd.conf "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $" Sample configuration file for the Common UNIX Printing System (CUPS) scheduler. See "man cupsd.conf" for a complete description of this file. MaxLogSize 2000000000 Log general information in error_log - chang…

2012-12-19 11:32 · 评论(0)

redhat ntsysv 管理的服务

service list amd :运行automount精灵程序,该精灵在必要时自动安装一些本地设备和NFS文件系统。 apmd :用来监视系统用电状态,并将相关信息通过syslogd 写入日志。也可以用来在电源不足时关机。 arpwatch :该程序主要用来维护以太网物理地址和IP地址的对应关系。 atalk :AppleTalk精灵程序。注意不要在后台运行该程序,该程序的数据结构必须在运行其他进程前先花一定时间初始化。 atd :运行用户用At命令调度的任务。也在系统负荷比较低时运行批处理任务。 autofs :当您需要时自动转载文件系统,而当您不需要时自动卸载。 bootparamd…

2012-11-29 12:28 · 评论(0)

Ubuntu开启SSH服务

首先在服务器上安装ssh的服务器端。 $ sudo apt-get install openssh-server 启动ssh-server。 $ /etc/init.d/ssh restart 确认ssh-server已经正常工作。 $ netstat -tlp tcp6 0 0 *:ssh : LISTEN - 看到上面这一行输出说明ssh-server已经在运行了。

2012-08-21 14:47 · 评论(0)

原文转载:centos apache+php+mysql 安装

转载地址:http://www.cnblogs.com/ylqmf/archive/2011/09/07/2170087.html 1.yum -y update 2.yum -y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysq…

2011-11-30 14:00 · 评论(0)

exp操作错误 map : Permission Denied

从应用服务器导出数据库服务器的数据库dump,提示错误: map : Permission Denied 分段错误 查相关文档: Unix permissions problem under ORACLE_HOME Apparently this is a known Oracle bug, after installing Oracle 10.2.0 Unix permissions underORACLE_HOME are not set correctly, so directories and files are accessible to theinstallation user …

2011-11-30 10:00 · 评论(0)

ORA-00054错误

ORA-00054:resource busy and acquire with NOWAIT specified or timeout expired; 查找并解决死锁: select object_name,session_id,oracle_username from v$locked_object t1, user_objects t2 where t1.object_id =t2.object_id; select sid, serial#, username, osuser , * from v$session where sid='374'; alter system kill…

2011-11-07 10:56 · 评论(0)

Centos DHCP开启,可以获得IP,但无法上网的问题

配置linux网络时候,可以ping通局域网,ping外网时提示: connect: network is unreachable 这条命令就可以搞定: route add default gw 192.168.1.1 后面那是你的网关。 现在 route 一下 Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 default my.router 0.0.0.0 UG 0 0 0 eth0 之前如果没有添…

2011-09-08 23:38 · 评论(0)

RHEL/CENTOS禁止更新系统内核

2011-09-06 14:25 · 评论(0)

转载:CentOS开启telnet服务

转载自: http://blog.csdn.net/zhujiangm/article/details/4540778 服务器:CentOS-5.1(192.168.1.87) 客户机:FC6(192.168.1.86) Windows XP(192.168.1.88) 虽然telnet的明文传输有很大的安全隐患,而且现在基本上也被SSH来取代了,但是为了学习还是有必要了解一下,好了,进入正题 实验名:telnet服务器配置 一、安装telnet软件包(通常要两个)。 1、 telnet-client (或 telnet),这个软件包提供的是 telnet 客户端程序; 2、是 telnet…

2011-08-19 09:50 · 评论(0)

Oracle的安装小结

1、通用的图形化管理工具是DBCA,可以直接增加或者删除数据库; 2、自动启动 #vim /etc/oratab 将N,改成Y,格式:$ORACLE_SID:$ORACLE_HOME:<N|Y>: #vim /etc/rc.d/rc.local 增加以下两行 su oracle -lc "/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start" su oracle -lc /home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbstart 3、em的启动emctl …

2011-08-16 09:23 · 评论(0)

转载:Linux: emergency reboot or shutdown with magic commands

Most linux distributions use some type of mechanism to gracefully stop daemons and unmount storage volumes during a reboot or shutdown. It's most commonly done via scripts that will wait for each daemon to shut down gracefully before proceeding to the next daemon. As we know, sometimes servers misb…

2011-07-25 17:46 · 评论(0)

转载:CentOS 下设置SVN

转载自: http://www.cublog.cn/u/31179/showart_1387424.html 有修正 Subversion有两种运行方式, 一种是基于Apache Http Server , 另外一种是Subversion Standalone Server 。下面我讲解的是基于Apache Http Server的Subversion,这样做几个好处 A.能使用WebDAV协议。 B.能使用浏览器作为客户端工具浏览源码仓库。 C.可以很容易的支持到SSPI(Windows域认证)和LDAP(AD?),这些都是Apache本身就支持的。 D.能得到比较完善的Apache安全认…

2011-07-07 10:01 · 评论(0)

CentOS设置静态IP

貌似有很多种方法,但是我习惯用以下的方法: $su - root #vim /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static #DHCPCLASS= IPADDR=192.168.1.3 ##静态IP NETMASK=255.255.255.0 ##子网掩码 TYPE=Ethernet HWADDR=00:XX:XX:XX:XX:XX ONBOOT=yes #vim /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=lo…

2011-07-05 22:27 · 评论(0)

修改CentOS 5.6的源

$su - root #cd /etc/yum.repos.d/ #cp CentOS-Base.repo CentOS-Base.repo.bak #vi CentOS-Base.repo 修改原文为: [base] name=CentOS-$releasever - Base baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5 #released updates [update…

2011-07-04 23:31 · 评论(0)

Using tsclient of Ubuntu to connect to Centos via vnc protocol

environment: Server: CentOS 5.6 64bit Client: Ubuntu 11.04 64bit TOOL:terminal server client protocol:vnc Server Part: 1、Check if vnc server is installed. [root@localhost ~]# rpm -qa|grep vnc vnc-server-4.1.2-14.el5_6.6 gtk-vnc-0.3.8-3.el5 gtk-vnc-python-0.3.8-3.el5 If not,install it. From source: …

2011-06-28 09:38 · 评论(0)