问题:将规则添加到防火墙中,总是端口无法开启
(1)修改文件
首先vim /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5001:5009 -j ACCEPT(允许5001到5009的端口通过防火墙)
接着执行/etc/init.d/iptables restart (重启...
分类:
其他好文 时间:
2014-10-17 20:34:43
阅读次数:
223
今天很逗比的装了Ubuntu14.04 又装了Android studio 写了个app 运行报错:
Adb
not responding. you can wait more or kill adb process manually and click ‘restart’ ”
Google了一下,找到一个外国佬写的专业解决方法:
http://simpledevelop...
分类:
数据库 时间:
2014-10-17 15:38:10
阅读次数:
203
lspci 查看pci插槽设备lsusb 查看USB设备tftp 配置文件 /etc/xinetd.d/tftptftp 根目录 /var/lib/tftpbootservice xinetd restart/etc/init.d/xinetd/ restartyum(进入/yum目录,之前将光盘内...
分类:
其他好文 时间:
2014-10-16 20:50:43
阅读次数:
239
Today return ACM.Restart...Do Ieverhave thestrengthtogoon?That’s a questions about time...
分类:
其他好文 时间:
2014-10-15 19:18:41
阅读次数:
126
//=========================Mac 检测端口:lsof -i :8080重启apache:sudo /usr/sbin/apachectl restart关闭apache:sudo /usr/sbin/apachectl stop开启apache:sudo /usr/sbi...
分类:
其他好文 时间:
2014-10-14 23:49:19
阅读次数:
261
修改配置sshd的文件1.修改sshd配置文件 /etc/ssh/sshd_config2.将#PasswordAuthentication no的注释去掉,并将no改为yes3.将#PermitRootLogin yes的注释掉4.重新启动SSH服务/etc/init.d/sshd restart...
分类:
其他好文 时间:
2014-10-14 11:02:38
阅读次数:
158
1.初始化数据库;postgresql-setup initdb2.启动postgresql并设置为开机自启动;systemctl restart postgresqlsystemctl enable postgresql3.登进数据库看看状态;(可略)su - postgrespsql\du (查...
分类:
数据库 时间:
2014-10-13 19:02:27
阅读次数:
303
* mysql启动报错时 重启时 /etc/init.d/mysqld restart Stopping mysqld: [ OK ] Another MySQL daemon already running with the same unix socket. Starting mysqld: [...
分类:
数据库 时间:
2014-10-12 12:21:37
阅读次数:
234
当我们使用ADT的时候往往会遇到adb.exe无法正常启动的问题,如下:
Tag: Theconnection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Please ensure that adb is correctly located at。...
分类:
数据库 时间:
2014-10-12 12:21:08
阅读次数:
290
#!/bin/sh
my_ip=`/sbin/ifconfig eth1 | grep 'inet addr' | awk '{print substr($2, index($2, ":")+1)}'`
recv=""
msg="not_existing, restart ..."
MONITOR_LOG="monitor.log"
#monitor procname scriptname...
分类:
系统相关 时间:
2014-10-11 23:25:07
阅读次数:
329