命令: ll /proc/运行程序的进程号/exe
1 查nginx进程号
[root@hadoop 7101]# ps -ef|grep nginx
root 7101 1 0 17:47 ? 00:00:00 nginx: master process /my/servers/nginx/sbin/nginx -c /my/servers/nginx/conf/nginx.conf
admin 7102 7101 0 17:47 ? 00:00:00 nginx: worker process
admin 7103 7101 0 17:47 ? 00:00:00 nginx: worker process
admin 7104 7101 0 17:47 ? 00:00:00 nginx: worker process
admin 7105 7101 0 17:47 ? 00:00:00 nginx: worker process
admin 7106 7101 0 17:47 ? 00:00:00 nginx: worker process
admin 7107 7101 0 17:47 ? 00:00:00 nginx: worker process
admin 7108 7101 0 17:47 ? 00:00:00 nginx: worker process
admin 7109 7101 0 17:47 ? 00:00:00 nginx: worker process
root 7129 28291 0 17:53 pts/0 00:00:00 grep nginx
进程号:7101
2 进入目录
[root@hadoop sbin]# cd /proc/7101
[root@hadoop 7101]# ls
attr clear_refs cpuset fd loginuid mounts numa_maps pagemap schedstat stat task
autogroup cmdline cwd fdinfo maps mountstats oom_adj personality sessionid statm wchan
auxv comm environ io mem net oom_score root smaps status
cgroup coredump_filter exe limits mountinfo ns oom_score_adj sched stack syscall
[root@hadoop 7101]# ll exe
lrwxrwxrwx. 1 root root 0 Aug 13 17:53 exe -> /my/servers/nginx/sbin/nginx
3 测试,可以看到运行的配置文件
[root@hadoop 7101]# /my/servers/nginx/sbin/nginx -t
nginx: the configuration file /my/servers/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /my/servers/nginx/conf/nginx.conf test is successful
4 查看版本
[root@hadoop 7101]# /my/servers/nginx/sbin/nginx -V
nginx version: nginx/1.7.2
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
configure arguments: --prefix=/my/servers/nginx --sbin-path=/my/servers/nginx/sbin/nginx --conf-path=/my/servers/nginx/conf/nginx.conf --error-log-path=/my/servers/nginx/logs/error.log --http-log-path=/my/servers/nginx/logs/access.log --pid-path=/my/servers/nginx/var/nginx.pid --lock-path=/my/servers/nginx/var/nginx.lock --http-client-body-temp-path=/dev/shm/nginx_temp/client_body --http-proxy-temp-path=/dev/shm/nginx_temp/proxy --http-fastcgi-temp-path=/dev/shm/nginx_temp/fastcgi --user=admin --group=admin --with-cpu-opt=pentium4F --without-select_module --without-poll_module --with-http_realip_module --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_module --without-http_ssi_module --without-http_userid_module --without-http_ssi_module --without-http_userid_module --without-http_geo_module --without-http_map_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module
分享到:
相关推荐
单点故障,避免nginx的宕机,导致整个程序的崩溃 准备多台Nginx。 准备keepalived,监听nginx的健康情况。 准备haproxy,提供一个虚拟的路径,统一的去接收用户得请求。#### 资源优化 > 客户端发送的请求可能是...
程序请放盘符根目录下运行,不能用中文路径,也不能有空格,正确的路径如下: d:\qzzmserver d:\qzzmserver\app 核心目录 d:\qzzmserver\database 数据库存放目录 d:\qzzmserver\wwwroot 网站存放目录 d:\qzzmserver...
程序请放盘符根目录下运行,不能用中文路径,也不能有空格,正确的路径如下: d:\qzzmserver d:\qzzmserver\app 核心目录 d:\qzzmserver\database 数据库存放目录 d:\qzzmserver\wwwroot 网站存放目录 d:\qzzmserver...
1. 为了减少出错安装路径不得有空格和汉字,如有防火墙开启,会提示是否信任httpd、mysqld运行,请选择全部允许。 2. 此为Nginx+PHP方案,需要apache+php方案的请到www.phpStudy.net下载phpStudy,Lighttpd+PHP方案...
用如下命令查看当前系统中的定时任务列表 crontab -l 对crontab进行编辑 crontab -e 这里设置的是每天6,、12、20点整运行脚本 0 6,12,20 * * * /usr/local/bin/python3.7 /home/ec2-user/cov19/app.py > /home/ec2...
1. 为了减少出错安装路径不得有空格和汉字,如有防火墙开启,会提示是否信任httpd、mysqld运行,请选择全部允许。 2. 此为Lighttpd+PHP方案,需要apache+php方案的请到www.phpStudy.net下载phpStudy,Nginx+php方案...
- **微信小程序**新增每日新闻热搜功能、可随时查看热搜。 - 新增本博客配套的**App**,同时接入qq、微博登录,使用更加方便。 - 代码遵循阿里巴巴开发规范,利于开发者学习。 ## 技术介绍 **前端:** vue + vuex ...
运行到手机查看效果图 使用说明 将pdf.js下载的文件放到路径/hybrid/html下 调用方法在index.vue中,具体查看注释即可 h5 跨域 另外如果h5想要跨域的话,可以配置你要访问的那个资源所在的服务,这里以 nginx 为例 ...
应用程序分析的有用工具的类。 有关 pydoc 生成的文档,请参阅 libpywebhack.html。 安装 运行$ python setup.py install或将脚本放在同一目录中。 执照 知识共享署名非商业性共享 主要特征 检测网络服务器、平台、...
权宜之计是在反向代理(例如Nginx)后面运行它 先决条件 Python 3.x-此版本是在3.6上开发的。 配置 将仓库和cd复制到目录中。 运行pip install -r requirements python csik.py 网址 /hello测试路径,以验证一切...
[如何使用] 下载程序,解压上传到你的服务器路径下,data目录设置777权限。访问体验超便捷的服务吧! (data目录没有写权限会导致配置修改不能保存、不能新建用户等) [关于上传问题] 程序没有做任何限制,如果需要...