linx启动图片服务器 nginx服务器+redis服务器+启动ftp服务器
发布日期:2021-05-10 15:44:19 浏览次数:18 分类:精选文章

本文共 2526 字,大约阅读时间需要 8 分钟。

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 processroot       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-sentinelredis-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 started2145: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 *:6379root       2151   2117  0 15:42 pts/0    00:00:00 grep --color=auto redis//三:启动ftp服务器[root@localhost bin]# service vsftpd start  //启动ftpRedirecting to /bin/systemctl start  vsftpd.service[root@localhost bin]# ls //查看dump.rdb         redis-check-aof  redis-cli   redis-sentinelredis-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.confroot       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 ftpFTP设置开机自动运行:chkconfig vsftpd on关闭FTP开机自动运行:chkconfig vsftpd off查看所有服务开启自动运行的情况:chkconfig --list启动FTP服务:service vsftpd start停止FTP服务:service vsftpd stop重启FTP服务:service vsftpd restart
上一篇:Table ‘ghh.drug‘ doesn‘t exist
下一篇:Field ‘id‘ doesn‘t have a default value

发表评论

最新留言

留言是一种美德,欢迎回访!
[***.207.175.100]2025年04月11日 02时04分33秒