Mac快速搭建http,ftp服务器
2017-08-19 23:55
393 查看
一、原因
有时候在学习或者工作的时候需要一个web或者ftp服务器,而mac本身就携带web和ftp服务器的功能
二、WEB服务器搭建
1)开启命令:sudo apachectl start /restart
2) 关闭命令:sudo apachectl stop
3)服务器默认页面路径:/Libiary/WebServer/Documents
4)服务器配置文件:/etc/apache2/httpd.conf
可修改端口
定义DocumentRoot,服务器根路径,
定义DirectoryIndex,默认文件,另外还有错误日志文件等
5)查看apache版本:sudo apachectl -v
三、FTP服务器
1)开启命令:sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
2) 关闭命令:sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist
设置开机自启:编辑ftp.plist文件
<dict>
<key>Disable</key> //修改为Enabled
四、
五、
有时候在学习或者工作的时候需要一个web或者ftp服务器,而mac本身就携带web和ftp服务器的功能
二、WEB服务器搭建
1)开启命令:sudo apachectl start /restart
2) 关闭命令:sudo apachectl stop
3)服务器默认页面路径:/Libiary/WebServer/Documents
4)服务器配置文件:/etc/apache2/httpd.conf
可修改端口
定义DocumentRoot,服务器根路径,
定义DirectoryIndex,默认文件,另外还有错误日志文件等
5)查看apache版本:sudo apachectl -v
三、FTP服务器
1)开启命令:sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
2) 关闭命令:sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist
设置开机自启:编辑ftp.plist文件
<dict>
<key>Disable</key> //修改为Enabled
四、
五、
相关文章推荐
- 利用Python快速搭建HTTP&FTP服务器
- 快速搭建FTP服务器 by:http://cyr520.blog.51cto.com
- 利用Python快速搭建HTTP&FTP服务器
- 利用Python快速搭建HTTP&FTP服务器
- Win10如何搭建FTP服务器以实现快速传输文件
- 如何在Mac上快速搭建git服务器
- python 快速搭建http 文件共享服务器
- 基于IIS的HTTP、FTP文件服务器搭建与性能测试
- Mac下搭建nginx http点播服务器
- 如果在mac本地快速搭建一个服务器
- FileZilla_Server快速搭建FTP服务器
- CentOS 6下快速搭建ftp服务器
- mac端如何快速搭建一个web服务器
- Proftpd快速搭建FTP服务器
- linux下简单快速的搭建ftp服务器环境
- 搭建FTP服务 搭建Http静态服务器环境
- Linux平台下快速搭建FTP服务器
- 图片服务器搭建 ftp上传http协议读取图片
- CentOS 7.0快速搭建HTTP服务器和仅供授权用户登陆的FTP服务器 linux vsftp
- CentOS 5.8下快速搭建FTP服务器