惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Last Watchdog
The Last Watchdog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Secure Thoughts
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
T
Tor Project blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Vercel News
Vercel News
Last Week in AI
Last Week in AI
月光博客
月光博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
博客园 - 叶小钗
NISL@THU
NISL@THU
C
Check Point Blog
K
Kaspersky official blog
N
News and Events Feed by Topic
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
Arctic Wolf
T
Threatpost
GbyAI
GbyAI
L
LINUX DO - 热门话题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy & Cybersecurity Law Blog
N
News and Events Feed by Topic
Scott Helme
Scott Helme
P
Privacy International News Feed
The Register - Security
The Register - Security
G
GRAHAM CLULEY
Recorded Future
Recorded Future
Apple Machine Learning Research
Apple Machine Learning Research
C
Cybersecurity and Infrastructure Security Agency CISA
B
Blog
Project Zero
Project Zero
Cyberwarzone
Cyberwarzone
Webroot Blog
Webroot Blog
Microsoft Security Blog
Microsoft Security Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
D
DataBreaches.Net
J
Java Code Geeks
AWS News Blog
AWS News Blog
Help Net Security
Help Net Security
Engineering at Meta
Engineering at Meta
M
MIT News - Artificial intelligence
T
Threat Research - Cisco Blogs
Google DeepMind News
Google DeepMind News

博客园 - 明月我心

百度网盘的同步空间使用方式 windows10删除多出的oem分区 自己搭建anki同步服务器 linux设置自动更换壁纸 linux下zip文件解压乱码的问题 Node判断文件是否链接 解决Qualcomm Atheros AR8161 Gigabit Ethernet网卡Linux下坏掉的问题 Openbox中指定目录打开程序 Openbox简单支持平铺 linux关闭双显卡的方法 rdesktop共享剪贴板的问题 Dell Inspiron One2330连接WPA2-PSK的问题 12306快速输入验证码办法 rsync命令中的include参数顺序问题 gnome下使用x-tile平铺窗口 开始相信360是款好软件,见下图 adb shell后insufficient permissions for device的问题 Gentoo linux下Adobe AIR运行环境的安装 php升级到5.3后Discuz论坛不能使用的问题
Apache FTPServer安装为Windows服务的问题
明月我心 · 2013-04-13 · via 博客园 - 明月我心

服务器环境是Windows2008 64位

安装过程

1.下载Apache FTPServer的Windows版本,解压到D:\FTP

2.安装jre到C:\Program Files\Java\jre7并在系统中添加环境变量JAVA_HOME为此路径

3.然后安装为windows服务

cd D:\FTPServer\bin
d:
service.bat install ftpd res/conf/ftpd-typical.xml

4.net start ftpd启动时出现问题

google后在下面地方找到一些有用的信息

Apache FtpServer在64位系统下服务不能启动解决方法

使用上面的方法,下载最新tomcat,用其中的Tomcat.exe替换bin目录下的ftpd.exe

然后如果mode=java时可以启动,但不能停止服务

5.尝试使用tomcat所带的service.bat安装服务,发现提示JAVE_HOME变量没有定义正确

   打开service.bat查看,发现和ftpserver所带的批处理不同,里面区分了JRE_HOME,JAVA_HOME,后者对应的是jdk的路径

  猜测原来的命令和jdk更匹配些

  于是安装jdk,并设置JAVA_HOME为jdk目录,然后重新安装服务

service.bat remove ftpd
service.bat install ftpd res/conf/ftpd-typical.xml

这时net start ftpd,net stop ftpd都可以执行成功

6.换回FTPServer原来自带的ftpd.exe,还是执行失败

总结

1.使用tomcat中带的启动文件替换FTPServer中的ftpd.exe

2.使用jdk作为JAVA_HOME,而不能是jre