linux常用服务的启停
1.telnet 服务的启停:
# chkconfig telnet on
# service xinetd reload
2.FTP 服务的启停
# /etc/init.d/vsftpd start
如果您希望在启动机器时启动vsftpd 服务,则可以创建以下的符号链接:
# ln -s /etc/init.d/vsftpd /etc/rc3.d/S56vsftpd
# ln -s /etc/init.d/vsftpd /etc/rc4.d/S56vsftpd
# ln -s /etc/init.d/vsftpd /etc/rc5.d/S56vsftpd
如果希望将sys加入到ftp组的话修改编辑文件 /etc/vsftpd.ftpusers 和 /etc/vsftpd.user_list,并从每个文件中删除“root”行。
3.在有时sendmail这个服务经常导致无法进入系统:
#/etc/rc.d/init.d/sendmail stop
然后再设置其不在系统启动时启动:
#chkconfig -levels 12345 sendmail off
4.将防火墙关闭
#chkconfig iptables off
5.网卡重起/网络的重启
网卡的相关的配置放在目录:/etc/sysconfig/network-scripts
可以在上述目录找到各个网卡的信息:及重启网卡的命令:
ifup enth0
ifdown enth0
ifconfig eth0 down;ifcofnig eth0 up
#more /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
#more /etc/issue
# more /proc/version
#grep "model name" /proc/cpuinfo
#more /proc/cpuinfo
#getconf LONG_BIT
#more /proc/meminfo
#grep MemTotal /proc/meminfo
#ldd /sbin/mii-tool
#rpm -qa | grep glibc
#gcc –v
可在~/.cshrc中加入
setenv LANG zh_CN
并在/etc/sysconfig/i18n中加入
LANG="zh_CN.GB18030"
SUPPORTED="zh_CN.GB2312:zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10834762/viewspace-404422/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10834762/viewspace-404422/