中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁(yè) > news >正文

wordpress資源博客優(yōu)化師助理

wordpress資源博客,優(yōu)化師助理,做地方生活網(wǎng)站,黃島網(wǎng)站建設(shè)服務(wù)方式一、 1:rc.local 文件 1、執(zhí)行命令:編輯 “/etc/rc.local” vi /ect/rc.local 2、然后在文件最后一行添加要執(zhí)行程序的全路徑。 例如,每次開機(jī)時(shí)要執(zhí)行一個(gè) hello.sh,這個(gè)腳本放在 / usr 下面,那就可以在 “/et…

方式一、 1:rc.local 文件

1、執(zhí)行命令:編輯 “/etc/rc.local”

vi /ect/rc.local

2、然后在文件最后一行添加要執(zhí)行程序的全路徑。
例如,每次開機(jī)時(shí)要執(zhí)行一個(gè) hello.sh,這個(gè)腳本放在 / usr 下面,那就可以在 “/etc/rc.local” 中加一行 “/usr/./hello.sh”,或者 "cd /usr/ && ./hello.sh

在這里插入圖片描述
注意,你的命令應(yīng)該添加在:exit 0 之前

3、添加完保存后設(shè)置 rc.local 可執(zhí)行權(quán)限
chmod +x /etc/rc.local

方式二 :在 / etc/init.d 目錄下添加自啟動(dòng)腳本

linux 在 “/etc/rc.d/init.d” 下有很多的文件,每個(gè)文件都是可以看到內(nèi)容的,其實(shí)都是一些 shell 腳本或者可執(zhí)行二進(jìn)制文件
Linux 開機(jī)的時(shí)候,會(huì)加載運(yùn)行 / etc/init.d 目錄下的程序,因此我們可以把想要自動(dòng)運(yùn)行的腳本放到這個(gè)目錄下即可。系統(tǒng)服務(wù)的啟動(dòng)就是通過(guò)這種方式實(shí)現(xiàn)的。
PS:添加完后務(wù)必設(shè)置文件的可執(zhí)行權(quán)限 chmod +x filename

方式三:制作 Linux 服務(wù)并設(shè)置開機(jī)自啟動(dòng)

1.在這個(gè)目錄下創(chuàng)建服務(wù):
/etc/systemd/system
文件名為 XXXX.service

2.對(duì)應(yīng)XXXX.service內(nèi)容:

[Unit]
Description=XXXX(你程序的名字)
After=network.target(在哪個(gè)服務(wù)之后)[Service]
Type=simple
ExecStart=/root/xxx/xxx/XXXX         #啟動(dòng)程序  對(duì)應(yīng)路徑或絕對(duì)路徑
WorkingDirectory=/root/xxx/xxx       #程序工作目錄(這個(gè)和上面這一項(xiàng)可自由搭配)
StandardOutput=null                  #日志相關(guān)
Restart=always                       #程序自動(dòng)重啟(守護(hù)線程)
RestartSec=10                        #程序重啟間隔
StartLimitInterval=5                 #間隔內(nèi)重啟最大次數(shù)
User=root                            #使用者[Install]
WantedBy=multi-user.target

3.完成后,設(shè)置程序的啟動(dòng)或開機(jī)自啟:
通用命令:
systemctl start WEI-iEdge.service (啟動(dòng)服務(wù))
systemctl enable WEI-iEdge.service (啟動(dòng)服務(wù)的開機(jī)自啟)

  1. #重新加載配置
    systemctl daemon-reload

示例一 設(shè)置minio為服務(wù),并設(shè)置開機(jī)自啟動(dòng)

/usr/local/minio/etc/minio.conf

MINIO_VOLUMES="/usr/local/minio/data"#文件存儲(chǔ)地址
MINIO_OPTS="-C /usr/local/minio/etc --address xxxxx:9000   --console-address xxxxx:8848"
MINIO_ACCESS_KEY="minioadmin" 
#用戶名
MINIO_SECRET_KEY="xxxxxx" 
#密碼
[Unit]
Description=MinIO
Documentation=https://docs.min.io
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/local/minio/bin/minio[Service]
# User and group
User=minio
Group=minioEnvironmentFile=/usr/local/minio/etc/minio.conf
ExecStart=/usr/local/minio/bin/minio server $MINIO_OPTS $MINIO_VOLUMES# Let systemd restart this service always
Restart=always
# Specifies the maximum file descriptor number that can be opened by this process
LimitNOFILE=65536# Disable timeout logic and wait until process is stopped
TimeoutStopSec=infinity
SendSIGKILL=no[Install]
WantedBy=multi-user.target

啟動(dòng)服務(wù)
#啟動(dòng)minio服務(wù)
systemctl start minio.service

#添加開機(jī)自啟動(dòng)
systemctl enable minio.service

#查看狀態(tài)
systemctl status minio.service
#關(guān)閉服務(wù):
systemctl stop minio
#重新加載配置
systemctl daemon-reload

示例二 ,設(shè)置niginx的服務(wù)為自啟服務(wù)

[Unit]
Description=The NGINX HTTP and reverse proxy server
After=network.target remote-fs.target nss-lookup.target[Service]
Type=forking
PIDFile=/usr/local/nginx/logs/nginx.pid
ExecStart=/usr/local/nginx/sbin/nginx
ExecStop=/usr/local/nginx/sbin/nginx -s quit
ExecReload=/usr/local/nginx/sbin/nginx -s reload
PrivateTmp=true[Install]
WantedBy=multi-user.target

啟動(dòng)服務(wù)
#啟動(dòng)minio服務(wù)
systemctl start nginx.service

#添加開機(jī)自啟動(dòng)
systemctl enable nginx.service

#查看狀態(tài)
systemctl status nginx.service
#關(guān)閉服務(wù):
systemctl stop minio
#重新加載配置
systemctl daemon-reload

在這里插入圖片描述

http://www.risenshineclean.com/news/11143.html

相關(guān)文章:

  • 網(wǎng)站做seo第一步公司注冊(cè)流程
  • wordpress主題woocomece網(wǎng)站關(guān)鍵詞優(yōu)化建議
  • wordpress 接收詢盤長(zhǎng)治seo顧問(wèn)
  • 鎮(zhèn)江市住房城鄉(xiāng)建設(shè)局網(wǎng)站谷歌seo推廣
  • 專業(yè)做寫生的網(wǎng)站百度云官網(wǎng)登錄入口
  • 北京專業(yè)做網(wǎng)站電話百度手機(jī)seo軟件
  • 科技公司建設(shè)網(wǎng)站網(wǎng)站推廣如何收費(fèi)
  • 電子商務(wù)網(wǎng)站建設(shè)信陽(yáng)網(wǎng)站推廣公司
  • 網(wǎng)站插入背景音樂(lè)網(wǎng)站seo診斷分析報(bào)告
  • 政府網(wǎng)站建設(shè)及其對(duì)策參考文獻(xiàn)seo關(guān)鍵詞推廣公司
  • 拆分盤網(wǎng)站建設(shè)百度流量推廣項(xiàng)目
  • 公司網(wǎng)站怎么發(fā)布文章關(guān)鍵詞排名是什么意思
  • 網(wǎng)站做優(yōu)化效果怎樣搜索引擎排行榜
  • 數(shù)據(jù)庫(kù)php網(wǎng)站開發(fā)論文windows優(yōu)化大師官方下載
  • 北京專業(yè)網(wǎng)站制作大概費(fèi)用小程序seo
  • 提供網(wǎng)站建設(shè)報(bào)客源軟件哪個(gè)最好
  • 做基礎(chǔ)網(wǎng)站主機(jī)要關(guān)鍵詞優(yōu)化方法
  • 珠海網(wǎng)站建設(shè)哪家專業(yè)北京網(wǎng)絡(luò)推廣有哪些公司
  • 阿里云快速備份網(wǎng)站網(wǎng)絡(luò)營(yíng)銷推廣方案前言
  • 公安部網(wǎng)站備案 流程周口搜索引擎優(yōu)化
  • 微信小程序多少錢做一個(gè)博客程序seo
  • 軟件工程和網(wǎng)絡(luò)工程哪個(gè)好合肥網(wǎng)站優(yōu)化seo
  • 外貿(mào)網(wǎng)站建設(shè)模板下載廣西壯族自治區(qū)免費(fèi)百度推廣
  • 網(wǎng)站開發(fā)崗位實(shí)際情況岳陽(yáng)seo
  • 網(wǎng)站開發(fā)年終總結(jié)魔方優(yōu)化大師官網(wǎng)
  • 如何做網(wǎng)站實(shí)現(xiàn)收入穩(wěn)定免費(fèi)seo關(guān)鍵詞優(yōu)化方案
  • 施工企業(yè)安全生產(chǎn)管理規(guī)范最新版seo站長(zhǎng)網(wǎng)怎么下載
  • 做3d人物模型素材下載網(wǎng)站五種營(yíng)銷工具
  • 順的網(wǎng)站建設(shè)咨詢免費(fèi)國(guó)外ddos網(wǎng)站
  • 巴中哪里做網(wǎng)站網(wǎng)站推廣名詞解釋