-
Notifications
You must be signed in to change notification settings - Fork 0
openresty
asu126 edited this page Feb 23, 2017
·
3 revisions
https://segmentfault.com/a/1190000005670968 https://openresty.org/cn/installation.html sudo apt-get install lua5.1
sudo mv /usr/sbin/nginx /usr/sbin/nginx_bac
sudo ln -s /usr/local/openresty/nginx/sbin/nginx /usr/sbin/nginx
sudo mv /usr/local/openresty/nginx/conf /usr/local/openresty/nginx/conf_back
sudo ln -s /etc/nginx /usr/local/openresty/nginx/conf
安装nfs-kernel-server
sudo apt-get update
sudo apt-get install nfs-kernel-server
配置/etc/exports
sudo vi /etc/export
配置格式如下:
/home/git/repositories api_ip(rw,sync,no_subtree_check)
导出目录
sudo exportfs –a
启动NFS服务
sudo service nfs-kernel-server start