linx启动图片服务器 nginx服务器+redis服务器+启动ftp服务器

Xshell  (Build N/A)
Copyright (c) 2002 NetSarang Computer, Inc. All rights reserved.

Type `help' to learn how to use Xshell prompt.
[D:\~]$ 

Connecting to 192.168.230.131:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.


//一:启动nginx 服务器
WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Sat Jan 23 15:37:36 2021
[root@localhost ~]# cd  //进入目录
[root@localhost ~]# cd /usr/local/nginx/sbin // 进入nginx目录
[root@localhost sbin]# ps -ef | grep nginx  //查看nginx 进程
root       2133   2117  0 15:39 pts/0    00:00:00 grep --color=auto nginx  //表示未开启
[root@localhost sbin]# ./nginx   //开启nginx 服务
[root@localhost sbin]# ps -ef | grep nginx  //查看nginx 进程
root       2135      1  0 15:39 ?        00:00:00 nginx: master process ./nginx   //表示开启
nobody     2136   2135  0 15:39 ?        00:00:00 nginx: worker process
root       2138   2117  0 15:39 pts/0    00:00:00 grep --color=auto nginx


//二:启动nginx 服务器启动redis服务器
[root@localhost sbin]# cd /usr/local/redis/bin/ // 进入redis目录
[root@localhost bin]# ls    //查看
dump.rdb         redis-check-aof  redis-cli   redis-sentinel
redis-benchmark  redis-check-rdb  redis.conf  redis-server
[root@localhost bin]# ps -ef | grep redis  //查看redis  进程
root       2144   2117  0 15:42 pts/0    00:00:00 grep --color=auto redis   //表示未开启
[root@localhost bin]# ./redis-server redis.conf  //开启redis服务
2145:C 23 Jan 15:42:38.827 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 
2145:C 23 Jan 15:42:38.827 # Redis version=4.0.14, bits=64, commit=00000000, modified=0, pid=2145, just started
2145:C 23 Jan 15:42:38.827 # Configuration loaded
[root@localhost bin]# ps -ef | grep redis //查看进程
root       2146      1  0 15:42 ?        00:00:00 ./redis-server *:6379
root       2151   2117  0 15:42 pts/0    00:00:00 grep --color=auto redis


//三:启动ftp服务器
[root@localhost bin]# service vsftpd start  //启动ftp
Redirecting to /bin/systemctl start  vsftpd.service
[root@localhost bin]# ls //查看
dump.rdb         redis-check-aof  redis-cli   redis-sentinel
redis-benchmark  redis-check-rdb  redis.conf  redis-server
[root@localhost bin]# ps -ef | grep ftp //查看进程
root       2240      1  0 15:49 ?        00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
root       2243   2117  0 15:50 pts/0    00:00:00 grep --color=auto ftp
[root@localhost bin]# 







//注:FTP服务常用命令
查看FTP服务是否运行中:service vsftpd status
查看本地是否含有包含ftp的进程开启:ps -ef | grep ftp
FTP设置开机自动运行:chkconfig vsftpd on
关闭FTP开机自动运行:chkconfig vsftpd off
查看所有服务开启自动运行的情况:chkconfig --list
启动FTP服务:service vsftpd start
停止FTP服务:service vsftpd stop
重启FTP服务:service vsftpd restart

猜你喜欢

转载自blog.csdn.net/jq1223/article/details/113929416