vsftp 在 小米路由器vsftp中怎样添加开机自动启

【图片】【极客镖局】手把手教你开启小米路由器SSH_小米吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
【极客镖局】手把手教你开启小米路由器SSH收藏
首先你得有小米路由器和U盘以及一台能上网的电脑。好了开始教程。注:开启SSH意味着失去小米路由器的保修。开启请慎重。欢迎大家粉我,以后我开贴一定
第一步:明白开启SSH的意义。开启后能装更多好玩的插件,体验不一样的使用感受。详情请移步至小米社区的小米路由器板块。第二步:打开
即小米路由器的官网如图第三步:点进&开放“页面,进去之后如下图,再往下翻看到再往下翻看到现在开到开启SS工具字样了,点进去如下图登入你之前绑定小米路由器的账号然后就可以看到如下图这里是因为我除了小米路由器还绑定了小米路由器MINI版,所以显示两台设备。看好自己的路由器版本是不是开发板0.5.28 医以上
工具包使用方法:小米路由器需升级到开发版0.5.28及以上,小米路由器mini需升级到开发版0.3.84及以上。注意:稳定版不支持。请将下载的工具包bin文件复制到U盘(FAT/FAT32格式)的根目录下,保证文件名为miwifi_ssh.bin;断开小米路由器的电源,将U盘插入USB接口;按住reset按钮之后重新接入电源,指示灯变为黄色闪烁状态即可松开reset键;等待3-5秒后安装完成之后,小米路由器会自动重启,之后您就可以尽情折腾啦 :)图示
现在把U盘插进去查看U盘的属性很好,我的就是FAT32,如果不是就要格式化U盘,选择正确格式。以上是第四步
上一楼是第三步。。。第四步:下载工具包到U盘的根目录点击下载后会弹出使用协议,点接受即可。
第五步:找到刚才你下载的文件。名称为miwifi_ssh.bin把它剪切到U盘根目录
第六步:从电脑卸载掉U盘拔出来了。
第七步:关掉小米路由器,拔掉电源线既可。注意此时路由器不能正在下载东西。
第八步:插入u盘。
第九步:用一个牙签之类的东西顶住Rest孔,然后插入电源线。要一直顶住Rest孔,一直到指示灯为黄色闪烁状态在松开。等待3-5秒后既可安装完成。
好了,这样子就可以开启SSH了。不过这是在小米路由器固件是开发版的情况下的教程。本人将会再发一篇从稳定版开启SSH的教程。谢谢大家!
还是不明SSH的意义 网址失效了
登录百度帐号推荐应用小米路由器中怎样添加开机自动启动_百度知道
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。
小米路由器中怎样添加开机自动启动
我有更好的答案
路由器单独供电。可以购买钟控,到时间自动供电后就开启了。
为您推荐:
您可能关注的内容
换一换
回答问题,赢新手礼包linux下如何安装vsftp组件?_百度知道
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。
linux下如何安装vsftp组件?
我有更好的答案
conf文件:<img class="ikqb_img" src="http://c.hiphotos://c://g,再返回的结果看到两行都是off。[root@bogon ~]# useradd ftpuser这样一个用户建完,记得用普通登录不要用匿名了.conf文件,是vsftp的配置文件。[root@bogon ~]# yum -y install vsftpd2; off[root@bogon ~]#执行上面命令.修改selinux/zhidao/wh%3D600%2C800/sign=14fa68a3a46eddc426b2bcfd09eb9ac5/8d5494eef01f3a25bc315c607c40.jpg" esrc="http://c.hiphotos,所以关闭匿名登陆修改/etc/vsftpd/ offallow_ftpd_use_nfs --&gt。4.防火墙开启21端口因为ftp默认的端口为21,而centos默认是没有开启的,所以要修改iptables文件[root@bogon ~]# vim /etc/sysconfig/iptables在行上面有22 -jACCEPT 下面另起一行输入跟那行差不多的.jpg" esrc="allow_ftpd_anon_write --& offallow_ftpd_full_access --& off --不能ftptdallow_ftpd_use_cifs --& offftp_home_dir --&gt./zhidao/wh%3D600%2C800/sign=/zhidao/pic/item/b90e7bec54e736d104fc2d562690a.jpg" target="_blank" title="点击查看大图" class="ikqb_img_alink"><img class="ikqb_img" src="http,只是把22换成21; off--不能访问目录ftpd_connect_db --& offftpd_use_passive_mode --&gt.jpg" />还要运行下.&nbsp://g. offhttpd_enable_ftp_server --& offtftp_anon_write --&gt,重启iptables[root@bogon ~]# service iptables restart5;&nbsp.添加一个ftp用户此用户就是用来登录ftp服务器用的./zhidao/pic/item/8d5494eef01f3a25bc315c607c40,可以用这个登录,有/etc/vsftpd/vsftpd。<a href="http://g.hiphotos,代表,没有开启外网的访问[root@bogon ~]#setsebool -P allow_ftpd_full_access on[root@bogon ~]#setsebool -P ftp_home_dir on6.关闭匿名访问已经创建ftp用户和密码,使用用户名和密码登陆:linux下的安全组件。登录后默认的路径为 /home/ftpuser.给ftp用户添加密码[root@bogon ~]# passwd ftpuser输入两次密码后修改密码;&nbsp在linux下安装vsftp组件按照如下步骤,即可安装成功安装vsftpd组件安装完后
实战化教学领导品牌
主营:计算机技术培训
然后选择安装包,其实还有个更为简捷的方法就是使用yum命令在线安装。启动vsftpd服务/etc/init,直到出现用户主目录(一般位于/home/用户名),则vsftpd成功安装并运行。本人使用FlashFXP客户端软件连接方法&#47,回车确定。以下是要更改的选项anonymous_enable=NO
#禁止匿名访问ascii_upload_enable #允许使用ascii码上传ascii_download_enable #允许使用ascii码下载userlist_deny=NO #(这条需手动添加到最后)使用FTP用户表,表里没有的用户需要添加才能登录设置完毕之后,ESC,冒号wq回车,要特别注意,或者RPM安装包,再经过解压之后进行编译,或者用RPM -i命令安装。过程比较繁琐;etc&#47.gz安装包;vsftpd.confvi编辑器中的搜索使命是斜杠“/”,然后输入要查找的内容。然后就能进行文件的上传和下载了。只启动完还不行,最后由用户决定是否安装,然后为baidu这个用户添加密码passwd baidu,会提示输入两次密码。然后我们将baidu这个用户加入到FTP用户表里,还要给它添加开机自动启动,chkconfig vsftpd on4添加启动是没有任何提示的。useradd baidu回车,它的好处是读取多个镜像服务器列表中的最新版本,一切傻瓜化操作。yum命令的好处已经体现出来。配置Vsftpd安装完之后我们要对它进行配置,才能正常使用。vi /vsftpd start,看到[确定]即为启动成功。5linux关闭selinux然后reboot重启Linux服务器,当输入完安装命令之后,首先从服务器读取资源。编辑vsftpd的配置文件vi /etc/vsftpd&#47。值得注意的是,在Linux中,系统对于大小写严格区分,比如abc和ABC是完全不相同的字符;vsftpd/user_list,将里面其它初始用户全部删除,加入刚刚我们新建的baidu用户,这里我们按y确认安装。当出现“Complete!”时意味着安装完成;步骤下载VSFTPDLinux下传统的安装软件方法是下载tar,如果不确定是否已经加入了开机启动项可以运行chkconfig –list进行查看。安装和配置完之后要对它添加用户才能使用,这里以添加用户baidu为例,支持几乎所有常见的软件.d&#47
为您推荐:
其他类似问题
您可能关注的内容
&#xe675;换一换
回答问题,赢新手礼包&#xe6b9;4550人阅读
linux(35)
我们这里使用的vsftpd,基本配置
[root@ftp ~]# cat /etc/vsftpd/vsftpd.conf
# Example config file /etc/vsftpd/vsftpd.conf
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
# Uncomment this to allow local users to log in.
local_enable=YES
# Uncomment this to enable any form of FTP write command.
write_enable=YES
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=YES
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
# Activate logging of uploads/downloads.
xferlog_enable=YES
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using &root& for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
# You may override where the log file goes if you like. The default is shown
#xferlog_file=/var/log/vsftpd.log
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command &SIZE /big/file& in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
# You may activate the &-R& option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as &ncftp& and &mirror& assume
# the presence of the &-R& option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
# When &listen& directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd whith two configuration files.
# Make sure, that one of the listen options is commented !!
#listen_ipv6=YES
chroot_local_user=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
启动ftp服务
service vsftpd restart
ps -ef | grep vsftpd
#查看一下ftp服务是否是自启动的
chkconfig --list vsftpd
显示信息如下
vsftpd&&&&&&&&& 0:off&& 1:off&& 2:off&& 3:off&& 4:off&& 5:off&&& 6:off
#运行如下命令
chkconfig --level 3 vsftpd on
chkconfig --level 5 vsftpd on
#查看一下ftp服务是否是自启动的
chkconfig --list vsftpd
显示信息如下
vsftpd&&&&&&&&& 0:off&& 1:off&& 2:off&& 3:on&& 4:off&& 5:on&&& 6:off
注意一下3和5的状态如果都是on就是对的。
&很久没搞过了,网上的看了看总结一下
root@localhost ~]# chkconfig --list&&&& 显示开机可以自动启动的服务
[root@localhost ~]# chkconfig --add *** 添加开机自动启动***服务
[root@localhost ~]# chkconfig --del ***&& 删除开机自动启动***服务
[root@localhost ~]# setup&&&& 可以在shell图形终端里面配置的命令,去service里选择
[root@localhost ~]# ntsysv&&& 在shell终端图形配置开机启动服务命令,选项没上面那个多
setup 、rc.local 和chkconfig三种方式都可以设置
输入#setup指令进入系统服务菜单,选择你想启动的服务比如httpd,然后重起机器或者/etc/rc.d./init.d/httpd&
把启动命令放到/etc/rc.d/rc.local文件里这样就可以每次启动的时候自动启动服务了,例如对于apache,编译好apache后会在安装目录的bin下生成apachectl文件,这是个启动脚本,我们只需要把这个命令加到rc.local里就可以了
(suse没有rc.local。SUSE是可以这么定义自己的脚本的,如果希望在切换运行级之前和之后运行自己的脚本,那么可以分别创建:
/etc/init.d/before.local
/etc/init.d/after.local)
echo /usr/local/apache/bin/apachectl&& /etc/rc.d/rc.local,
设置服务自动启动的方式是在rc.local里还可以加入类&#20284;以下的一些脚本:
/usr/local/sbin/sshd
/usr/local/sbin/proftpd
/home/apache/bin/apachectl start
/home/mysql/bin/safe_mysqld --port=3306 &
#start oracle8i listener first
su - oracle -c 'lsnrctl start'
#start oracle8i
su - oracle -c 'dbstart'
通过chkconfig指令.
使用chkconfig命令来把某项服务加到系统的各项运行级别中,步骤如下,
1 创建启动脚本.
&&对于apache,mysql,ssh这样的软件都是自己带的,我们只要稍微修改一下使之支持chkconfig就可以了
2 修改脚本
我们需要在脚本的前面加上一下2行,才能支持chkconfig命令
# chkconfig:
# description: Automates a packet filtering firewall withipchains.
chkconfig:后面定义的使启动服务的运行级别(例子中使2345启动改服务),以及关闭和启动服务的顺序,(上例中关闭服务的顺序使8,启动的顺序使92)
descriptions:对改服务的描述(上例中是ipchains包过滤),你可以换成自己想要的
修改好之后执行
cp 你的脚本 /etc/rc.d/init.d/脚本名
chmod 700 /etc/rc.d/init.d/脚本名
chkconfig --add 脚本名
将其加入Linux启动过程,仅在level 3, level 5级别下运行
[root@Tester init.d]/sbin/chkconfig --add apache-httpd
[root@Tester init.d]/sbin/chkconfig --level 35 apache-httpdon
之后就可以了,以后每次重新启动服务器都会自动启动和关闭我们的服务了
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:744475次
积分:10662
积分:10662
排名:第1731名
原创:294篇
转载:136篇
评论:64条
(6)(15)(6)(8)(19)(17)(15)(12)(8)(5)(3)(24)(29)(5)(6)(2)(5)(11)(1)(3)(1)(4)(1)(1)(1)(2)(1)(2)(2)(1)(2)(2)(6)(7)(7)(7)(18)(14)(5)(6)(6)(7)(10)(7)(18)(20)(5)(20)(48)
(window.slotbydup = window.slotbydup || []).push({
id: '4740887',
container: s,
size: '250,250',
display: 'inlay-fix'软件按字母搜索:
中文按声母搜索:

我要回帖

更多关于 小米路由器怎么重启 的文章

 

随机推荐