Linux服务器---安装telnet
安装telnet telnet是标准的远程登录协议,历史悠久。但是telnet的对话数据没有加密,甚至用户名和密码都是明文显示,这样的服务风险极大。目前大多数系统多已经不会再安装这个服务了,用户需要自己手动安装 1、安装telnet软件,用户可以将telnet的服务器和客户端都安装 [root@localhost wj]# r
Linux服务器---配置telnet
配置telnet 通过配置文件,我们可以设置telnet的连接时间、连接数、连接ip等,实现更加安全的连接1、设置连接时间,参数“access_times”[root@localhost wj]# gedit /etc/xinetd.d/telnetservice telnet{ flags&
Linux服务器---ssh配置
Ssh配置 通过配置文件,我们可以有效的管理ssh1、空闲时间关闭连接1)修改配置文件“/etc/ssh/sshd_config”,设置clientAliveInterval和clientAliveCountMax,注意取消前面的注释[root@localhost wj]# gedit /etc/ssh/sshd_confClientAliveIn
Linux服务器---ssh登录
Ssh登录 Ssh是建立在应用层和传输层的安全协议,专门为远程登录回话和其他网络服务提供安全性。利用ssh可以有效的防止远程管理中的信息泄露问题,同时ssh传输的数据是经过压缩的,可以加快传输速度。 1、启动sshd服务。Centos默认已经安装了ssh,而且该服务默认是启动的[root@localhost wj]# rpm -q
Linux服务器---代理认证
代理认证proxy代理服务被广泛的使用,为了安全起见,可以在服务器上增加一层安全认证机制。这里使用htpasswd建立认证账号和密码1、创建认证账号和密码[root@localhost wj]# htpasswd -c /etc/squid/passwd davidNew password: Re-type new password: Adding password f
Linux服务器---squid限制
Squid连接限制Squid可以有效的限制连接,指定哪些用户可以连接,指定哪些网站可以访问,这样就可以有效的利用服务器带宽。1、限制指定网段不能连接。编辑配置文件”/etc/squid/squid.conf”,利用acl语言添加受限制的ip地址[root@localhost wj]# gedit /etc/squid/squid.confacl clientdeny src
Linux服务器---squid缓存
Squid缓存代理服务器会在本地硬盘设置缓存,这样可以提高网络效率1修改squid配置文件“/etc/squid/squid.conf”,参数“cache_dir_ufs”就是设置缓存目录的[root@localhost wj]# gedit /etc/squid/squid.conf# Uncomment and adjust the following t
Linux服务器---安装squid
安装squidproxy就是软件代理或者代理服务器,而squid就是一种常用的proxy服务1、安装squid [root@localhost wj]# rpm -qa | grep squid[root@localhost wj]# yum install -y squid  
Linux服务器---DansGuardian
DansGuardianDansGuardian可以限制客户端的访问,通过这个软件,我们可以限制哪些网站不可以访问、哪些内容不能下载。1、下载DansGuardian,提供一个网址http://www.rpmfind.net/linux/RPM/dag/redhat/el5/i386/dansguardian-2.8.0.6-1.2.el5.rf.i386.html 2、安装[root@
Linux服务器---安装swat
安装swatswat是一个图形化的samba管理软件,可以帮助不熟悉的人去灵活的配置samba服务,1、安装swat[root@localhost wj]# yum install -y samba-swat Dependency Updated: libsmbclient.i686 0:3.6.23-51.el6 samba.i686 0:3.
Linux服务器---配置samba
配置samba使用用户名和密码登录 1、当samba配置文件中的secure设置为user的时候,需要正确的用户名和密码才能登录。root@localhost /]# gedit /etc/samba/smb.conf# ----------------------- Standalone Server Options ---------
Linux服务器---安装samba
安装samba 1、检测samba是否安装,如果没有,那么可以使用yum来安装。至少需要安装3个软件:samba, samba-client、samba-common[root@localhost pub]# rpm -qa | grep sambasamba-winbind-clients-3.6.9-164.el6.i686samba-client-3.6.9-164
Linux服务器---配置bind
配置bind1、确定已经安装bind软件,需要安装3 个bind、bind-chroot、bind-util[root@localhost wj]# yum install –y bind bind-chroot bind-util 2、修改配置文件“/etc/named.conf”[root@localhost pub]# gedit /etc/named
Linux服务器---安装bind
安装bind1、安装bind软件,需要安装3 个bind、bind-chroot、bind-util[root@localhost pub]# yum install -y bind bind-chroot bind-utilsInstalled: bind.i686 32:9.8.2-0.17.rc1.el6_4.6 &
Linux服务器---ftp配置
其他配置在配置文件中,还有一些关于vsftpd的其他设置,这里列出来# Example config file /etc/vsftpd/vsftpd.conf# Allow anonymous FTP? (Beware - allowed by default if you comment this out).anonymous_enable=YES 
Linux服务器---ftp黑名单
用户黑白名单一个Linux主机中会多个用户,而我们希望有些用户不能去访问ftp。ftp服务器可以通过配置文件“/etc/vsftpd/user_list”来设置一个用户列表,这个列表可以是黑名单,也可以是白名单,具体要根据配置文件的参数“userlist_deny”来确定 1、黑名单1)修改配置文件“/etc/vsftpd/vsftpd.conf”中的参数“userlist_enable
Linux服务器---ftp限制ip
限制IP1、通过vsftpd的配置文件以及“hosts.deny”和“hosts.allow”文件设置允许某个ip地址访问1)修改配置文件“/etc/vsftpd/vsftpd.conf”中的参数“tcp_wrapper”,确保这个参数是yes[root@localhost wj]# gedit /etc/vsftpd/vsftpd.conf  
Linux服务器---ftp限制带宽
限制带宽ftp服务器可以设置每个用户的带宽,这样根据实际需求来分配,更加充分的利用系统资源。带宽通过参数“anon_max_rate“和”local_max_rate“来设置,这两个参数在配置文件中如果找不到,那么用户可以在末尾追加。1、设置匿名用户带宽,通过参数“anon_max_rate”,之后重启服务1)未修改之前的速度[root@localhost wj]# lftp 192.1
Linux服务器---安装vsftpd
安装vsftpd大多数Linux系统都使用vsftpd,因此这里我们也安装vsftpd1、安装vsftpd [root@localhost phpMyAdmin]# yum install -y vsftpdLoaded plugins: fastestmirror, refresh-packagekit, securityInstalled: vsftp
Linux服务器---phpMyAdmin
phpMyAdmin 工具1、检测是否已安装php、php-mysql、apache等工具[root@localhost src]# rpm -qa |grep phpphp-cli-5.3.3-26.el6.i686php-gd-5.3.3-26.el6.i686php-mysql-5.3.3-26.el6.i686php-pdo-5.3.3-26.el6.i686php-5