進階搜尋
搜尋結果
找到了 668 個結果
Docker 部署IIS
[Docker] 容器初體驗 - 搞個 IIS Container 來部署網站 | 搞搞就懂 - 點部落 (dotblogs.com.tw) 將 ASP.NET MVC 應用程式遷移到 Windows 容器 | Microsoft Learn 準備 Windows 作業系統容器 | Microsoft Learn
Laravel queue 使用supervisor 實現多執行序
https://segmentfault.com/a/1190000021165798 [program:laravel-queue-work] process_name=%(program_name)s_%(process_num)02d directory=/data/yoursite command=php artisan queue:work autostart=true autorestart=true user=www numprocs=32 redirect_stderr=true ...
Centos7 安裝 php7.4
新增Remi repository yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum install epel-release yum-utils 開啟PHP 7.4yum-config-manager --enable remi-php74 安裝PHP 7.4yum install php 驗證php -v 安裝PHP 7.4擴充功能 yum install php-devel php-xmlrpc p...
【shell】deny_hack_ip.sh
簡單阻擋 try 帳號 ip #! /bin/bash #cat /var/log/secure|awk '/Failed/{print $(NF-3)}'|sort|uniq -c|awk '{print $2"="$1;}' > /root/block.txt cat /var/log/secure|awk '/Invalid user/{print $(NF-2)}'|sort|uniq -c|awk '{print $2"="$1;}' > /root/block.txt DEFINE="10" ...
【Linux】禁止密碼登入(使用金鑰)
修改 /etc/ssh/sshd_config vim /etc/ssh/sshd_config ## 修改 PubkeyAuthentication PubkeyAuthentication yes #使用 ssh key 登入 PasswordAuthentication no #禁止密碼登入 重啟 ssh 服務 sudo systemctl restart sshd.service
【React】建立React 環境
引入js <script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script> <script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script> <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></sc...
【React】資料綁定
單向綁定 使用大括弧綁定變數,標籤內屬性不用加雙引號 const data = { imgUrl : "https://images.unsplash.com/photo-1650190558669-e8cc1ae3551f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1770&q=80", titl: "AAAA", content : "Lorem ipsum...
【React】JSX 如何轉譯
// JSX 寫法 function App() { return <h1>React 我來了 <small className="text-danger">{new Date().toLocaleDateString() }</small></h1> } // JS 寫法 React.createElement function App(){ // React.createElement({tag} , {屬性}, {值} return React.createElement...
【React】JSX 與 Html 標籤屬性
<script type="text/babel"> function App() { const htmlTemplate = { __html :'<div>這裡有一段文字</div>'} return ( <div> {/* 使用 dangerouslySetInnerHTML 顯示html */} <div dangerouslySetInnerHTML={htmlTemplate}></div> ...
【React】JSX 開發常見問題
1. 定義元件一定是手字大寫 /** wrong*/ function app(){ } /** correct*/ function App(){ } 2. 多個元素外層需要使用標籤包覆,或使用 React.Fragment // wrong function App(){ // return 後沒有東西預設會補; => 顯示錯誤 return <div> ..... </div> } // correct function App(){ ...
【OpenResty】相關資源
跟我学OpenResty(Nginx+Lua)开发目录贴 https://jinnianshilongnian.iteye.com/category/333854 第一章 安裝OpenResty(Nginx+Lua)開發環境 第二章OpenResty(Nginx+Lua)開發入門 Docker下的OpenResty三部曲 https://blog.csdn.net/boling_cavalry/article/details/79290944 https://blog.csdn.net/bo...
【Nginx】config 詳解
基本配置區塊 #config 區塊 基本配置 ... # 全域性區塊 event{ # events 區塊 ... } http{ # http 區塊 server{ # server 區塊 location{ # location 區塊 ... } } } server ...
【ES6】展開
合併陣列 const groupA = ['小明', '杰倫', '阿姨']; const groupB = ['老媽', '老爸']; const groupC = [...groupA,...groupB]; //'小明', '杰倫', '阿姨', '老媽', '老爸' 繼承物件 const methods = { fn1() { console.log(1); }, fn2() { console.log(1); }, } const methods2...
【ES6】其他新語法
預設值 function sum(a, b = 1) { // 加入預設值避免錯誤 return a + b; } console.log(sum(1));
【ES6】賦值解構
取出特定值作為變數 // #1 取出特定值作為變數 const person = { name: '小明', age: 16, like: '鍋燒意麵' } const {name, age} = person; console.log(name, age); // 小明, 16 陣列解構 const arr = ['小明', '杰倫', '漂亮阿姨']; const [Ming, Jay ] = arr; console.log(Ming, Jay); // '小明...
【Shell】【tip】使用暫存表,更新crontab
#!/bin/bash # $$ => pid,使暫存檔名不重複 tmp_file=/tmp/cron$$ # 利用trap 刪除暫存檔 #This installs a trap handler for exit (0) and signals 1 (SIGHUP), 3 (SIGQUIT) and 15 (SIGTERM) # that removes a file presumably storing a process ID. #See man 3 signal for detail...
【Redis】相關指令
相關指令 連線 # redis-cli -h {$host} -p {$port} -a password # ping 檢測服務正常 $redis-cli -h 127.0.0.1 -p 6379 -a "mypass" redis 127.0.0.1:6379> redis 127.0.0.1:6379> PING PONG 使用redis-cli 進入redis 127.0.0.1:6379> select 1 OK 127.0.0.1:6379[1]> 進入db (具有16個 ...
DB 相關資源
DB 排名 https://db-engines.com/en/ranking