记录

配置:sudo vim /etc/hosts

我的nginx的目录:

cd ~/workspace/nginx

操作nginx :重启 nginx -s reload

### linux 安装nginx

http://www.runoob.com/linux/nginx-install-setup.html

### nginx 安装好之后配置全局命令

ln -s '/usr/local/webserver/nginx/sbin/nginx' /bin/nginx

whereeis nginx

// 删除某一个表中对应的数据

delete from contentedit where path like '%-1-%' or path like '1-%'

// 更新mysql 数据

// update userstatements set createdAt = now()

// 查询数据

select * from answerstatements where updatedAt is null;

//--模糊查询

select * from userstatements where path like '%-129493-%' or path like '129493-%'

// --- 查出对应的id

select concat(id,',') from userstatements where path like '%-129493-%' UNION

select concat(id,',') from userstatements where path like '%-129494-%' UNION

select concat(id,',') from userstatements where path like '%-129495-%' UNION

select concat(id,',') from userstatements where path like '%-129496-%' UNION

select concat(id,',')from userstatements where path like '%-129497-%' UNION

select concat(id,',')from userstatements where path like '%-129498-%' UNION

select concat(id,',')from userstatements where path like '%-129500-%';

// 删除没有匹配上的id的数据

delete from 表的名称 where id not in (1,2,3)

// 排序

select id,name,pid,path from userstatements where name like '%若琪%' order by length(name) limit 0,100;

//nginx


记录_第1张图片

/usr/local/tengine/conf/service

// 最好的node 文章

http://javascript.ruanyifeng.com/nodejs/basic.html#toc12

# 关闭端口

kill -9 '端口id'

# 查看端口 

lsof -i:8080

netstat -tlnp   =>

我的hosts 地址

sudo vim /etc/hosts

你可能感兴趣的:(记录)