网站运维记录

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

你可能感兴趣的:(网站运维记录)