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

推荐订阅源

博客园 - Franky
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
宝玉的分享
宝玉的分享
量子位
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
GbyAI
GbyAI
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
Y
Y Combinator Blog
L
LangChain Blog
The Cloudflare Blog
T
The Blog of Author Tim Ferriss
U
Unit 42
Martin Fowler
Martin Fowler
aimingoo的专栏
aimingoo的专栏
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客

博客园 - 明月我心

百度网盘的同步空间使用方式 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