centos7下各種開機啓動

redis3.2 用 yum 方式安裝
# 啓動redis
systemctl start redis.service
# 停止redis
systemctl stop redis.service
# 查看redis運行狀態
systemctl status redis.service
# 查看redis進程
ps -ef | grep redis
# 開機啓動
systemctl enable redis
systemctl daemon-reload
#停止開機啓動
systemctl disable redis
systemctl daemon-reload
#配置文件
/etc/redis.conf


mysql5.7.26 用 yum 方式安裝
#啓動mysql
systemctl start mysqld.service
#停止mysql
systemctl stop mysqld.service
#開機啓動
systemctl enable mysqld
systemctl daemon-reload
#停止開機啓動
systemctl disable mysqld
systemctl daemon-reload
#配置文件
/etc/my.cnf

tomcat 8.5.41
#啓動
/opt/apache-tomcat-8.5.41/bin/startup.sh
#停止
/opt/apache-tomcat-8.5.41/bin/shutdown.sh
#開機啓動,在/etc/rc.local中添加,刪除即停止開機啓動
/opt/apache-tomcat-8.5.41/bin/startup.sh

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章