随笔分类 -  centos

上一页 1 ··· 3 4 5 6 7

centos iptables 防火墙 命令
摘要:iptables -F# 允许包从22端口进入iptables -A INPUT -p tcp --dport 22 -j ACCEPT# 允许从22端口进入的包返回iptables -A OUTPUT -p tcp --sport 22 -m state --state ESTABLISHED -j ACCEPTiptables -A OUTPUT -p udp --dport 53 -j ACCEPTiptables -A INPUT -p udp --sport 53 -j ACCEPT#允许本机访问本机iptables -A INPUT -s 127.0.0.1 -d 127.0.0. 阅读全文

posted @ 2011-08-30 10:58 cn三少<script></script> 阅读(1023) 评论(0) 推荐(0)

yum命令全集详解
摘要:yum check-update 检查可更新的所有软件包yum update 下载更新系统已安装的所有软件包yum upgrade 大规模的版本升级,与yum update不同的是,连旧的淘汰的包也升级yum install <packages> 安装新软件包yum update <packages> 更新指定的软件包yum remove <packages> 卸载指定的软件包yum groupinstall <groupnames> 安装指定软件组中的软件包yum groupupdate <groupnames> 更新指定软件组中的 阅读全文

posted @ 2011-08-30 10:30 cn三少<script></script> 阅读(1144) 评论(0) 推荐(0)

centos服务访问不了。看看iptables
摘要:很大的原因是防火墙: 通过/etc/init.d/iptables status命令查询是否有打开80端口,如果没有可通过两种方式处理:1.修改vi /etc/sysconfig/iptables命令添加使防火墙开放80端口-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT2.关闭防火墙/etc/init.d/iptables stop#start 开启#restart 重启永久性关闭防火墙chkconfig --level 35 iptables off 阅读全文

posted @ 2011-08-29 16:43 cn三少<script></script> 阅读(278) 评论(0) 推荐(0)

服务器架设:CentOS搭建LAMP详细教程
摘要:面,你就能看到刚刚安装的 PHP和MySQL 模块。6. 设置 Apache2 和 MySQL 开机启动chkconfig --levels 3 httpd onchkconfig --list httpd/etc/init.d/httpd restartchkconfig --levels 3 mysqld onchkconfig --list mysqld/etc/init.d/mysqld restart注意:“设置 Apache 和 MySQL 开机启动”这一步一定要做,否则是访问不了你的网站的。OK,一个 LAMP 服务器搭建完成。第二部分1.安装phpMyAdmin如果已经将PHP 阅读全文

posted @ 2011-08-29 16:03 cn三少<script></script> 阅读(299) 评论(0) 推荐(0)

CentOS 5.5 系统安全配置
摘要:750 /usr/bin/c++* [root@localhost ~]# chmod 750 /usr/bin/ld [root@localhost ~]# chmod 750 /usr/bin/as [root@localhost ~]# locate sqlaccess /opt/lampp/bin/mysqlaccess [root@localhost ~]# chmod 755 /opt/lampp/bin/mysqlaccess [root@localhost ~]# chattr +a .bash_history [root@localhost ~]# chattr +i .ba 阅读全文

posted @ 2011-08-29 14:15 cn三少<script></script> 阅读(214) 评论(0) 推荐(0)

Telnet、SSH(SSH1和SSH2)之间的区别
摘要:简言之:Telent是明码传输,SSH是加密传输。 使用Telnet这个用来访问远程计算机的TCP/IP协议以控制你的网络设备相当于在离开某个建筑时大喊你的用户名和口令。很快会有人进行监听,并且他们会利用你安全意识的缺乏。传统的网络服务程序如:ftp、pop和telnet在本质上都是不安全的,因为它们在网络上用明文传送口令和数据,别有用心的人非常容易就可以截获这些口令和数据。而且,这些服务程序的安全验证方式也是有其弱点的,就是很容易受到“中间人”(man-in-the- middle)这种方式的攻击。所谓“中间人”的攻击方式,就是“中间人”冒充真正的服务器接收你的传给服务器的数据,然后再冒充你 阅读全文

posted @ 2011-08-23 13:37 cn三少<script></script> 阅读(5450) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7

导航