网站运维记录

1.nfs
客户端:
安装:yum install nfs-utils -y
挂载
mount -t nfs 10.10.21.103:/home/elasticsearch_data/ /home/esuser/data //es数据
mount -t nfs 10.10.21.103:/home/wwwroot/newsshop/public/files_pro/ /home/wwwroot/newsshop/public/files //图片数据
服务端:
安装 :rpc nfs
配置:
vi /etc/exports
/home/elasticsearch_data 10.10.21.0/24(rw,sync,anonuid=1004,anongid=1004)
/home/wwwroot/newsshop/public/files_pro 10.10.21.0/24(rw,sync,all_squash,anonuid=0,anongid=0)
启动:(注意先后)
systemctl start rpcbind.service
systemctl start nfs.service
检查挂载情况:
showmount

2.elasticsearch启动
sudo esuser
cd /home/esuser/elasticsearch/bin
nohup ./elasticsearch >/dev/null 2>&1 & 后台启动

3.python虚拟机
启动:source /usr/local/python3/bin/virtualenvwrapper.sh
选择虚拟机:workon spider

4.爬虫系统(scrpay+scrapyd+spiderkeeper)选择了虚拟机后才能运行:
nohup scrapyd > /dev/null 2>&1 & 后台运行scrapyd
nohup spiderkeeper > /dev/null 2>&1 & 后台运行spiderkeeper
浏览器域名访问:spiders.itaogao.com

5.rabbitmq启动
systemctl restart rabbitmq-server.service
然后浏览器访问

6.svn
启动:svnserve -d -r /root/svn/
钩子:
cd /root/svn/repo/hooks
svn co svn://10.10.21.103/repo /home/wwwroot/newsshop

转载于:https://blog.51cto.com/felixcode/2394223

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值