[web@iZm5ec85pxbvv35djsgogwZ ~]$ pwd
/home/web
[web@iZm5ec85pxbvv35djsgogwZ ~]$ whereis nginx
nginx: /usr/bin/nginx /usr/local/nginx
[web@iZm5ec85pxbvv35djsgogwZ ~]$ whereis php
php: /usr/bin/php /usr/local/php
[web@iZm5ec85pxbvv35djsgogwZ ~]$ cd /usr/bin/
[web@iZm5ec85pxbvv35djsgogwZ bin]$ ls
[web@iZm5ec85pxbvv35djsgogwZ bin]$ ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Jun15 ? 00:00:00 /sbin/init
root 2 0 0 Jun15 ? 00:00:00 [kthreadd]
root 3 2 0 Jun15 ? 00:00:00 [migration/0]
root 4 2 0 Jun15 ? 00:00:01 [ksoftirqd/0]
root 5 2 0 Jun15 ? 00:00:00 [stopper/0]
root 6 2 0 Jun15 ? 00:00:01 [watchdog/0]
root 7 2 0 Jun15 ? 00:00:00 [migration/1]
root 8 2 0 Jun15 ? 00:00:00 [stopper/1]
root 9 2 0 Jun15 ? 00:00:00 [ksoftirqd/1]
root 10 2 0 Jun15 ? 00:00:00 [watchdog/1]
root 11 2 0 Jun15 ? 00:00:00 [migration/2]
root 12 2 0 Jun15 ? 00:00:00 [stopper/2]
root 13 2 0 Jun15 ? 00:00:00 [ksoftirqd/2]
root 14 2 0 Jun15 ? 00:00:01 [watchdog/2]
root 15 2 0 Jun15 ? 00:00:00 [migration/3]
root 16 2 0 Jun15 ? 00:00:00 [stopper/3]
root 17 2 0 Jun15 ? 00:00:00 [ksoftirqd/3]
root 18 2 0 Jun15 ? 00:00:01 [watchdog/3]
root 19 2 0 Jun15 ? 00:00:00 [migration/4]
root 20 2 0 Jun15 ? 00:00:00 [stopper/4]
root 987 2 0 Jun15 ? 00:00:00 [ext4-dio-unwrit]
root 1025 2 0 Jun15 ? 00:00:00 [kauditd]
root 1028 1 0 Jun15 ? 00:05:23 /usr/sbin/aliyun-service
root 1346 1 0 Jun15 ? 00:00:02 auditd
root 1368 1 0 Jun15 ? 00:00:01 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5
dbus 1397 1 0 Jun15 ? 00:00:00 dbus-daemon --system
68 1435 1 0 Jun15 ? 00:00:06 hald
root 1436 1435 0 Jun15 ? 00:00:00 hald-runner
root 1482 1436 0 Jun15 ? 00:00:00 hald-addon-input: Listening on /dev/input/event2 /dev/input/event0
68 1494 1436 0 Jun15 ? 00:00:00 hald-addon-acpi: listening on acpi kernel interface /proc/acpi/event
root 1551 2 0 Jun15 ? 00:00:00 [cqueue]
root 1631 1 0 Jun15 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
root 1655 1 0 Jun15 ? 00:00:00 /usr/sbin/sshd
root 1666 1 0 Jun15 ? 00:00:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
ntp 1677 1 0 Jun15 ? 00:00:07 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
exim 2231 1 0 Jun15 ? 00:00:00 /usr/sbin/exim -bd -q1h
root 2251 1 0 Jun15 ? 00:00:01 crond
root 2266 1 0 Jun15 ? 00:00:00 /usr/sbin/atd
root 2310 1 0 Jun15 ? 00:00:00 login -- root
root 2312 1 0 Jun15 tty2 00:00:00 /sbin/mingetty /dev/tty2
root 2314 1 0 Jun15 tty3 00:00:00 /sbin/mingetty /dev/tty3
root 2316 1 0 Jun15 tty4 00:00:00 /sbin/mingetty /dev/tty4
root 2318 1 0 Jun15 tty5 00:00:00 /sbin/mingetty /dev/tty5
root 2320 1 0 Jun15 tty6 00:00:00 /sbin/mingetty /dev/tty6
root 2323 631 0 Jun15 ? 00:00:00 /sbin/udevd -d
root 2324 631 0 Jun15 ? 00:00:00 /sbin/udevd -d
root 2326 1 0 Jun15 ? 00:00:00 /usr/sbin/console-kit-daemon --no-daemon
root 2392 2310 0 Jun15 tty1 00:00:00 -bash
root 5145 1 0 Jun28 ? 00:03:38 /usr/local/aegis/aegis_update/AliYunDunUpdate
root 5158 1 0 Jun28 ? 00:18:29 /usr/local/aegis/aegis_client/aegis_10_25/AliYunDun
root 7957 1655 0 12:56 ? 00:00:00 sshd: web [priv]
web 7959 7957 0 12:56 ? 00:00:00 sshd: web@pts/0
web 7960 7959 0 12:56 pts/0 00:00:00 -bash
root 8571 1655 0 15:08 ? 00:00:00 sshd: web [priv]
web 8573 8571 0 15:08 ? 00:00:00 sshd: web@pts/2
web 8574 8573 0 15:08 pts/2 00:00:00 -bash
root 8887 1 0 Jun15 ? 00:00:46 php-fpm: master process (/usr/local/php/etc/php-fpm.conf)
web 8888 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8889 8887 0 Jun15 ? 00:00:06 php-fpm: pool www
web 8890 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8891 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8892 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8893 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8894 8887 0 Jun15 ? 00:00:08 php-fpm: pool www
web 8895 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8896 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8897 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8898 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8899 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8900 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8901 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8902 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8903 8887 0 Jun15 ? 00:00:08 php-fpm: pool www
web 8904 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8905 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8906 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8907 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8908 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8909 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8910 8887 0 Jun15 ? 00:00:06 php-fpm: pool www
web 8911 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8912 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8913 8887 0 Jun15 ? 00:00:08 php-fpm: pool www
web 8914 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8915 8887 0 Jun15 ? 00:00:08 php-fpm: pool www
web 8916 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8917 8887 0 Jun15 ? 00:00:06 php-fpm: pool www
web 8918 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8919 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8920 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8921 8887 0 Jun15 ? 00:00:06 php-fpm: pool www
web 8922 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8923 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8924 8887 0 Jun15 ? 00:00:06 php-fpm: pool www
web 8925 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8926 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8927 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8936 8887 0 Jun15 ? 00:00:09 php-fpm: pool www
root 9098 2 0 17:54 ? 00:00:00 [flush-252:0]
root 9128 2 0 18:05 ? 00:00:00 [flush-252:16]
root 9196 1655 0 18:25 ? 00:00:00 sshd: web [priv]
web 9198 9196 0 18:25 ? 00:00:00 sshd: web@pts/3
web 9199 9198 0 18:25 pts/3 00:00:00 -bash
web 9231 7960 0 18:26 pts/0 00:00:00 /bin/bash /deployinfo/deploy/deploy_dev fanzheng1 fanzheng 89040fan 测试版本更新
web 9234 9231 0 18:26 pts/0 00:00:00 sh deploy.sh fanzheng1 fanzheng 89040fan 测试版本更新 1 /deployinfo/deploy
web 9251 9234 0 18:26 pts/0 00:00:00 git clone -b fanzheng1 https://fanzheng:89040fan@git.coding.net/deron/gogetmoney.git /tmp/wwwroot_1
web 9252 9251 0 18:26 pts/0 00:00:00 git-remote-https origin https://fanzheng:89040fan@git.coding.net/deron/gogetmoney.git
web 9255 9252 0 18:26 pts/0 00:00:00 git fetch-pack --stateless-rpc --stdin --lock-pack --thin --check-self-contained-and-connected --cloning https://fanzheng:89040fan@git.coding.n
web 9257 9255 1 18:26 pts/0 00:00:00 git index-pack --stdin -v --fix-thin --keep=fetch-pack 9255 on iZm5ec85pxbvv35djsgogwZ --check-self-contained-and-connected --pack_header=2,675
web 9258 9199 0 18:26 pts/3 00:00:00 ps -ef
web 12665 1 0 Jun30 ? 00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe
web 13159 12665 0 Jun30 ? 00:06:19 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/data/mysqlDB --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/data/mysql
web 21901 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21902 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21903 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21904 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21905 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21906 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21907 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21908 1631 0 Jul01 ? 00:00:00 nginx: worker process
root 32114 1 0 Jun15 ? 00:13:14 bin/redis-server 127.0.0.1:6379
[web@iZm5ec85pxbvv35djsgogwZ bin]$ ps -ef | grep php
web 408 8887 0 Jun16 ? 00:00:07 php-fpm: pool www
web 409 8887 0 Jun16 ? 00:00:06 php-fpm: pool www
web 410 8887 0 Jun16 ? 00:00:07 php-fpm: pool www
root 8887 1 0 Jun15 ? 00:00:46 php-fpm: master process (/usr/local/php/etc/php-fpm.conf)
web 8888 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8889 8887 0 Jun15 ? 00:00:06 php-fpm: pool www
web 8890 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8891 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8892 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8893 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8894 8887 0 Jun15 ? 00:00:08 php-fpm: pool www
web 8895 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8896 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8897 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8898 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8899 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8900 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8901 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8902 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8903 8887 0 Jun15 ? 00:00:08 php-fpm: pool www
web 8904 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8905 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8906 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8907 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8908 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8909 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8910 8887 0 Jun15 ? 00:00:06 php-fpm: pool www
web 8911 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8912 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8913 8887 0 Jun15 ? 00:00:08 php-fpm: pool www
web 8914 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8915 8887 0 Jun15 ? 00:00:08 php-fpm: pool www
web 8916 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8917 8887 0 Jun15 ? 00:00:06 php-fpm: pool www
web 8918 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8919 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8920 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8921 8887 0 Jun15 ? 00:00:06 php-fpm: pool www
web 8922 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8923 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8924 8887 0 Jun15 ? 00:00:06 php-fpm: pool www
web 8925 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8926 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8927 8887 0 Jun15 ? 00:00:07 php-fpm: pool www
web 8936 8887 0 Jun15 ? 00:00:09 php-fpm: pool www
web 9270 9199 0 18:27 pts/3 00:00:00 grep php
[web@iZm5ec85pxbvv35djsgogwZ bin]$ ps -ef | grep mysql
web 9273 9199 0 18:30 pts/3 00:00:00 grep mysql
web 12665 1 0 Jun30 ? 00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe
web 13159 12665 0 Jun30 ? 00:06:19 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/data/mysqlDB --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/data/mysqlDB/iZm5ec85pxbvv35djsgogwZ.err --open-files-limit=65535 --pid-file=/data/mysqlDB/iZm5ec85pxbvv35djsgogwZ.pid --socket=/tmp/mysql.sock --port=3306
[web@iZm5ec85pxbvv35djsgogwZ bin]$
[web@iZm5ec85pxbvv35djsgogwZ bin]$ ps -ef | grep nginx
root 1631 1 0 Jun15 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
web 9302 9199 0 18:31 pts/3 00:00:00 grep nginx
web 21901 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21902 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21903 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21904 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21905 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21906 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21907 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21908 1631 0 Jul01 ? 00:00:00 nginx: worker process
[web@iZm5ec85pxbvv35djsgogwZ bin]$
[web@iZm5ec85pxbvv35djsgogwZ bin]$ ps -ef | grep nginx
root 1631 1 0 Jun15 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
web 9302 9199 0 18:31 pts/3 00:00:00 grep nginx
web 21901 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21902 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21903 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21904 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21905 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21906 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21907 1631 0 Jul01 ? 00:00:00 nginx: worker process
web 21908 1631 0 Jul01 ? 00:00:00 nginx: worker process
[web@iZm5ec85pxbvv35djsgogwZ bin]$
[web@iZm5ec85pxbvv35djsgogwZ fpm]$ netstat -anp|grep 80
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 21901/nginx
tcp 391 0 118.190.137.64:47086 106.11.68.13:80 CLOSE_WAIT -
tcp 0 0 127.0.0.1:6379 127.0.0.1:46280 ESTABLISHED -
tcp 0 0 118.190.137.64:80 114.243.214.198:61886 TIME_WAIT -
tcp 0 0 127.0.0.1:6379 127.0.0.1:45880 ESTABLISHED -
tcp 0 0 127.0.0.1:46280 127.0.0.1:6379 ESTABLISHED 8909/php-fpm
tcp 0 0 118.190.137.64:22 114.243.214.198:58055 ESTABLISHED -
tcp 0 0 118.190.137.64:34170 140.205.140.205:80 ESTABLISHED -
tcp 0 0 127.0.0.1:45880 127.0.0.1:6379 ESTABLISHED 8907/php-fpm
unix 3 [ ] STREAM CONNECTED 1691080 21901/nginx
unix 3 [ ] STREAM CONNECTED 10180 -
[web@iZm5ec85pxbvv35djsgogwZ fpm]$
[web@iZm5ec85pxbvv35djsgogwZ conf]$ vim nginx.conf
#
# location /nginx_status
# {
# stub_status on;
# access_log off;
# }
#
# location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
# {
# expires 30d;
# }
#
# location ~ .*\.(js|css)?$
# {
# expires 12h;
# }
#
# location ~ /.well-known {
# allow all;
# }
#
# location ~ /\.
# {
# deny all;
# }
#
# access_log /home/wwwlogs/access.log;
# }
include vhost/*.conf;
}
server
{
listen 9999;
server_name localhost;
index index.html index.htm index.php default.html default.htm default.php;
root /data/deploy;
#include other.conf;
#error_page 404 /404.html;
include enable-php.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log /data/wwwlogs/deploy.log;
}
~
~
~
"deploy.conf" [readonly] 28L, 580C