您的位置:首页 > 运维架构 > Linux

linux 备忘命令

2015-07-07 11:44 531 查看
ssh ruofei.han@192.168.80.49

ps -ef|grep start

ps -ef|grep apache-tomcat-7.0.61

1.杀进程 kill -9 XXXX

2.备份 cp SBC.war SBC.war.bak

3.删除 rm SBC.war

4. 上传文件

5.开启tomcat bin/startup.sh

6.看日志 logs tail -f catalina.out

sudo -s

nohup ./start.sh &

//aws启动爬虫脚本

#!/bin/sh

cd /opt/spider/crawler_lottery/conf

nohup sudo sh ./start.sh>/opt/logs/spider.log &

//启动爬虫脚本

apt-get install openjdk-6-jdk

apt-get install mysql-server

scp -r /Users/hanruofei/Desktop/tt/a.txt xiaopeng.xi@192.168.80.49:/home/xiaopeng.xi

#mysql

service mysql status

1、授权

mysql>grant all privileges on *.* to 'root'@'%' identified
by 'youpassword' with grant option;

mysql>flush privileges;

2、修改/etc/mysql/my.conf

找到bind-address = 127.0.0.1这一行

改为bind-address = 0.0.0.0即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: