公司经常会新买服务器来实现相应的业务,对于新买的服务器,首先应该做哪些操作呢?通过相应的客户端工具(如:xshell)登录服务器,修改root密码修改hostname主机名关闭selinux设置防火墙:iptables-Fchkconfigiptablesoniptables-AINPUT-ptcp--dport22-jACCEPT(非常重要,注..
分类:
其他好文 时间:
2015-04-21 02:12:39
阅读次数:
300
查看IP命令: ip addr showCentOS 6下安装nginxCentOS 7.0,启用iptables防火墙http://ju.outofmemory.cn/entry/46060http://stackoverflow.com/questions/5009324/node-js-ngi...
分类:
其他好文 时间:
2015-04-21 00:08:21
阅读次数:
186
服务器信息如下
外网服务器:eth0:公网IP
eth1:内网IP(192.168.10.205)
公网对外提供服务,内网IP与内部局域网通信。
配置过程:
(1)开启iptables
service iptables restart (临时开启)
chkconfig iptables on...
分类:
系统相关 时间:
2015-04-20 21:01:35
阅读次数:
178
iptables(netfilter网络过滤器)iptables是linux上特有的防火墙机制,功能非常强大。CentOS默认是没有iptables规则。iptables命令可用于配置Linux的包过滤规则,常用于实现防火墙、NAT。常用选项:iptables-nvL查看规则(-n为数字显示输出的ip地址和端口-v为可视化显示-L为列出..
分类:
系统相关 时间:
2015-04-20 13:20:17
阅读次数:
258
嵌入式入门-linux文件共享
一 文件共享前提
1 linux与win相互ping通
2 关闭linux的防火墙/etc/init.d/iptables stop
二 连接WinSCP
三 连接samba
1 安装samba:yum install samba
2 添加用户:useradd win
3 设置密码:passwd win
4 设置在PC上...
分类:
系统相关 时间:
2015-04-20 09:40:20
阅读次数:
189
1.hadoop的伪分布安装1.1 设置ip地址执行命令service network restart验证:ifconfig1.2 关闭防火墙执行命令service iptables stop验证:service iptables status1.3关闭防火墙的自动运行执行命令chkconfig i...
分类:
其他好文 时间:
2015-04-20 00:11:37
阅读次数:
103
16.iptables配置管理·配置文件:·通过iptables添加的规则并不会永久保存,需要serviceiptablessave命令永久保存到/etc/sysconfig/iptables文件中,·CentOS自带默认iptables规则,保存自定义规则会覆盖默认规则,·基本操作:·iptables服务默认启动,serviceiptablesstatus..
分类:
其他好文 时间:
2015-04-19 19:48:24
阅读次数:
108
#防火墙允许端口
iptables-AINPUT-mstate--stateNEW-mtcp-ptcp--dport80-jACCEPT
iptables-AINPUT-mstate--stateNEW-mtcp-ptcp--dport3306-jACCEPT
#SELinux配置
SELINUX=disabled
#Nginx安装
yum-yremovehttpd*php*
yum-yinstallnginx
servicenginxstart
chkconfignginxon
..
分类:
其他好文 时间:
2015-04-19 19:40:16
阅读次数:
153
嵌入式入门-远程登录
一 登录前提
1 windows与linux相互ping通
ifconfig
2 linux关闭防火墙
/etc/init.d/iptables stop
二 登录工具-命令行
1 putty
2 SecureCRT
三 登录工具-图形化
1 vncserver
附:my_qq8727857...
分类:
其他好文 时间:
2015-04-19 19:33:55
阅读次数:
142
linux系统- 文件共享
一
文件共享的前提
1 windows与linux相互ping通
测试方法如下
则ping通
2 linux的防火墙关闭
/etc/init.d/iptables stop
二 samba配置
1 安装samba
2 设置密码:smbpasswd -a username
3 配置samba
4 重启samb...
分类:
系统相关 时间:
2015-04-19 14:44:28
阅读次数:
159