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即可
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即可
相关文章推荐
- linux下如何查找文件在哪个目录下
- linux服务器性能查看
- Linux C编程语言学习材料
- Windows 8.0上Eclipse 4.4.0 配置CentOS 6.5 上的Hadoop2.2.0开发环境
- U盘安装centos6.5教程(两种实现方法)
- 坑爹的linux虚拟机 桥连上网问题
- androidpn服务端部署到linux服务器…
- 安装linux虚拟机
- linux ACL
- virturebox扩展linux磁盘
- 驱动-linux 中断处理
- linux 下nagios监控系统的配置
- 查看linux服务器的系统信息
- (raspberry、bananapi)Archlinux 无法安装yaourt解决办法-----手工编译(不难)(适用于package-query找不到)
- linux同步时间
- Linux 文件描述符设置为非阻塞的方法
- Linux 运维的学习路线
- Linux文本流
- GPFS通用并行文件系统之CentOS上部署GPFS集群
- Linux下hosts文件详解