linux下启动AP热点时出错

1.启动hostapd,在终端下输入sudo ./hostapd hostapd.conf (注意:使用到的hostapd和hostapd.conf都处在当前工作目录下)

1.2.在执行1之后会出现以下错误:

Configuration file: hostapd.conf
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211 driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
hostapd_free_hapd_data: Interface wlan0 wasn‘t started

1.3.如果不以超级用户root运行的话,如: ./hostapd hostapd.conf    ,会出现以下错误信息:

Configuration file: hostapd.conf
Could not set interface wlan0 flags (DOWN): Operation not permitted
Could not set interface wlan0 flags (DOWN): Operation not permitted
Could not set interface wlan0 flags (DOWN): Operation not permitted
Could not set interface wlan0 flags (DOWN): Operation not permitted
Could not set interface wlan0 flags (DOWN): Operation not permitted
Could not set interface wlan0 flags (DOWN): Operation not permitted
Could not set interface wlan0 flags (DOWN): Operation not permitted
Could not set interface wlan0 flags (DOWN): Operation not permitted
Could not set interface wlan0 flags (DOWN): Operation not permitted
Could not set interface wlan0 flags (DOWN): Operation not permitted
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211 driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
hostapd_free_hapd_data: Interface wlan0 wasn‘t started

2.解决方法:

terminal中输入:

2.1 sudo nmcli nm wifi off

2.2 sudo rfkill unblock wlan

2.3 sudo ifconfig wlan0 192.168.1.1/24 up   (注意:我配置主机的ip地址为192.168.1.1)

2.4 sudo ./hostapd hostapd.conf

2.5 在2.4执行之后会出现以下信息即表示成功启动AP热点。

Configuration file: hostapd.conf
nl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory)
Using interface wlan0 with hwaddr 7c:8f:ed:36:45:fa and ssid "JelloSmith"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED

时间: 2024-11-02 23:31:29

linux下启动AP热点时出错的相关文章

【快速查阅】Linux下启动和关闭Weblogic(管理服务器+被管服务器)

Weblogic的管理服务器和被管服务器的启动.关闭,偶尔会用到,却又不常用,导致需用时却忘记了,而又重新查阅HELP. 故,以此记录,方便查阅.执行. 首先,weblogic的启动脚本和关闭脚本都在域目录的bin文件夹下,所以,先cd到该目录 cd $WEBLOGIC_HOME/user_projects/domains/$DOMAIN_NAME/bin 然后按需要执行以下脚本: 管理服务器的启动 ./startWebLogic.sh即可 但离开命令行模式随即关闭,所以需用nohup模式 亦可

linux下启动tomcat----Cannot find ./catalina.sh

参考:http://dearseven.blog.163.com/blog/static/1005379222013764440253/ linux 下启动tomcat [[email protected] bin]# sh startup.sh Cannot find ./catalina.shThe file is absent or does not have execute permissionThis file is needed to run this program 解决办法:给.

转载:Linux下执行SVN命令时提示错误:Valid UTF-8 data

在Linux下执行svn add *时出现如下错误: svn:  Valid UTF-8  data(hex: 4b)followed by invalid UTF-8 sequence(hex:  fc 63 68  65) 出现这个错误是因为svn库里有文件的名字不是utf-8编码的,这种情况对于中文来说很常见.比如在自己的windows上建了一个中文名字的文件,就会使这种情况. 几经周折,才找到解决办法: 首先,执行命令: ls * | file -/dev/stdin:  ISO-885

在Linux下启动Java服务的脚本

#!/bin/sh #该脚本为Linux下启动java程序的通用脚本.即可以作为开机自启动service脚本被调用, #也可以作为启动java程序的独立脚本来使用. # #Author: tudaxia.com, Date: 2011/6/7 # #警告!!!:该脚本stop部分使用系统kill命令来强制终止指定的java程序进程. #在杀死进程前,未作任何条件检查.在某些情况下,如程序正在进行文件或数据库写操作, #可能会造成数据丢失或数据不完整.如果必须要考虑到这类情况,则需要改写此脚本,

linux下启动tomcat报错 Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomness

INFO [localhost-startStop-1] com.mchange.v2.log.slf4j.Slf4jMLog$Slf4jMLogger$InfoLogger.log(206) | Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomnessjava.net.UnknownHostException: Oracle.Linu

linux下启动tomcat服务的命令是什么

Linux下tomcat服务的启动.关闭与错误跟踪,使用PuTTy远程连接到服务器以后,通常通过以下几种方式启动关闭tomcat服务:切换到tomcat主目录下的bin目录(cd usr/local/tomcat/bin)1,启动tomcat服务方式一:直接启动 ./startup.sh方式二:作为服务启动 nohup ./startup.sh &方式三:控制台动态输出方式启动 ./catalina.sh run 动态地显示tomcat后台的控制台输出信息,Ctrl+C后退出并关闭服务解释:通过

Linux下TCP延迟重庆时 时 彩源码下载确认(Delayed Ack)机制导致的时延问题分析

重庆时 时 彩下载联系方式:QQ:2747044651 网址在实际测试中发现,当N大于等于3的情况,第2秒之后,每次第三个recv调用,总会阻塞40毫秒左右,但在分析Server端日志时,发现所有请求在Server端处理时耗均在2ms以下. 当时的具体定位过程如下:先试图用strace跟踪客户端进程,但奇怪的是:一旦strace attach上进程,所有收发又都正常,不会有阻塞现象,一旦退出strace,问题重现.经同事提醒,很可能是strace改变了程序或系统的某些东西(这个问题现在也还没搞清

linux下启动oracle

1.使用liunx终端连接到服务器 2.root帐户切换到oracle帐户:su - oracle 3.手动启动oracle  (先开启实例,再开启监听) 1)启动数据库实例: sqlplus / as sysdba startup exit 2)启动监听 lsnrctl start exit 到此,oracle已完成启动. 4.使用pl/sql developer连接数据库 username: password: database: connect as: 5.linux下关闭数据库  (先关

linux下启动oracle服务命令

以redflag(redhat /centos)linux下的 oracle 10g 为例: 如果oracle安装和配置都没有问题的话: 依次执行以下代码即可启动oracle服务. #su - oracle $sqlplus / as sysdba >startup >exit $lsnrctl start $ps -ef|grep oracle ps -ef|grep oracle为查看oracle服务,如果现实列表服务一般表示oracle服务已经启动.