很多linux相关的知识都不太了解,所以需要不断地补充自己的知识储备
单机扛不住,所以需要分布式
概念: socket statistics的缩写
作用
常用命令 ss -lntp | grep nginx
| 参数 | 含义 |
|---|---|
| -l | listening,仅查看监听 |
| -n | 数字显示端口 |
| -t | TCP |
| -p | 显示进程 |
| -a | 查看所有 socket |
psshps aux --sort=-%mem |head
top
jssystemctl status nginx.service -l
js ps -ef | grep nginx
root 14230 14210 0 09:07 ? 00:00:00 nginx: master process nginx -g daemon off;
101 14445 14230 0 09:07 ? 00:00:00 nginx: worker process
101 14446 14230 0 09:07 ? 00:00:00 nginx: worker process
root 18205 11594 0 09:15 pts/0 00:00:00 grep --color=auto nginx
[root@localhost nginx_update_docker]# ss -lntp | grep nginx
LISTEN 0 511 *:4430 *:* users:(("nginx",pid=14446,fd=9),("nginx",pid=14445,fd=9),("nginx",pid=14230,fd=9))
LISTEN 0 511 *:4430 *:* users:(("nginx",pid=14446,fd=7),("nginx",pid=14445,fd=7),("nginx",pid=14230,fd=7))
LISTEN 0 511 127.0.0.1:80 *:* users:(("nginx",pid=14446,fd=8),("nginx",pid=14445,fd=8),("nginx",pid=14230,fd=8))
LISTEN 0 511 127.0.0.1:80 *:* users:(("nginx",pid=14446,fd=6),("nginx",pid=14445,fd=6),("nginx",pid=14230,fd=6))
[root@localhost nginx_update_docker]# ps -o pid,ppid,cmd -p 14230,14445,14446
PID PPID CMD
14230 14210 nginx: master process nginx -g daemon off;
14445 14230 nginx: worker process
14446 14230 nginx: worker proces
GCC 是一个工具链,用于编译代码,将代码与各种库依赖项连接,并为程序集,最后形成可执行文件。GCC 遵循标准的 UNIX 设计理念,工具简单,但效果和性能一流。GCC 开发组件利用多个分散的工具辅助软件编译。
shyum的全称为Yellow dog Updater,Modified,是一个基于RPM的shell前端包管理器,能够从指定的服务器上(一个或多个)自动下载并安装或更新软件、删除软件。其最大的好处是可以自动解决依赖关系。RedHat和CentOS的版本为5以上的都会默认安装yum,所以该命令可以直接使用。
本文作者:曹子昂
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!