71.重启Linux 的nginx
# ps -ef | grep nginx 获取nginx路径
# /usr/sbin/nginx -s reload 执行重启
/etc/init.d/nginx nginx
获取路径重启
72.linux查看PHP版本 nginx版本
php -v
nginx -v
73.重启mysql
# service mysql start
74.查看运行进程
# netstat -anpt
75.git操作拉取远程文件
1.先初始目录 git init
2.拉取远程信息 git clone
https://git.oschina.net/wuzhourm/wzcmcms.git
输入远程账号密码
76.# sudo docker logs lempcompose_nginx_1 查看容器logs
77.docker-com pose.yml pull 拉取容器 可使用阿里云代理加快下载速度
78.
upstream my_server {
server 127.0.0.1:800; //代理后执行的ip ip加端口
}
server {
listen 80;
server_name game.sdzoucheng.top; //访问域名
client_max_body_size 1024M;
location / {
proxy_pass http://my_server; 设置代理方法
proxy_set_header Host $host:$server_port;
}
}
79.docker-compose up -d
在后台启动并运行所有的容器。
80. chmod 777 文件名 修改权限
81.查看运行进程
ps aux | grep nginx
ps -ef | grep nginx
82.
列出linux所有版本信息,
[root@localhost ~]# lsb_release -a
83. which nginx 查看nginx是否存在,并返回目录 对其他进程使用
84.phpstorm 正版激活
http://idea.imsxm.com
85.
css 属性 ,打开新的窗口
target="_blank"
86.
whereis nginx 找到配置文件进行重启
87.mysql 去重 distinct
select distinct letter as letter from topic_area ORDER BY letter asc
88.来源统计并计算数量:
SELECT source,count(1) as count FROM `posts` where created_at BETWEEN '1506787200' and '1509422400' GROUP BY source order by count(1) desc;
查找时间戳范围
查询结果:
新华社 315
北京日报 151
89.Linux 查看设置的所有定时任务
crontab -e
90.git 版本回退
git log查看回退版本
git reset --hard 6275 6275代表回退版本编号