但在Mac要如何設定呢
首先當然進入系統設定,找到「使用者與群組」
接著,先點要設定的使幅者,看到右上有兩個標籤,請點右邊的登入項目。
找到想要開啟自動啟動的程式
新增後,就會看到已經新增。
ssh-keygen -R x.x.x.x
x.x.x.x 就是伺服器的ip或網址
Original contents retained as /your path/.ssh/known_hosts.old就著就可以重新連線了。
select * from test
select key,value from(
select key,value from test
) as testtable
select k,sum(v) from(
select key as k,value as v from test
union all
select key as k,value as v from test2
) group by k
select k,v from(而最外層的select欄位,並不一定要完全跟子查詢的欄位數完全相同,也可以只查某個欄位。只要外層的
select key as k,value as v from test
union all
select key as k,value as v from test2
) order by k
select v from(
select key as k,value as v from test
union all
select key as k,value as v from test2
) order by k
select * from tablename*代表的是所有欄位,但真的在撰寫程式時,較不建議這樣用
select col1,col2,col3 from tablename where col1>10至於條件怎麼加,就要該資料是什麼格式了
Insert into tablename (col1,col2,col3) values (value1,value2,value3)
Update tablename set col1="xx",col2="xx",col3="xx" where col="x"更新的話,就是看需要更新什麼哪個欄位的資料,
delete from tablename where col1="xx"刪除資料部分,看需要刪除的是哪個表,
Math.round()
Math.round();
round()
composer require slim/slim "^3.0"
composer require slim/php-view
defaults write com.apple.screencapture location ~/Desktop/快照/
killall SystemUIServer
server {
listen 80;
server_name example.com;
index index.php;
error_log /path/to/example.error.log;
access_log /path/to/example.access.log;
root /path/to/public;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
}
}
但這個時後問題來了, location / {
try_files $uri $uri/ /index.php$is_args$args;
}
這部分的設定很重要,在每個希望安裝slim的位置都需要設定 location /manager/ {
try_files $uri $uri/ /manager/index.php$is_args$args;
}
location /api/ {
try_files $uri $uri/ /api/index.php$is_args$args;
}
這樣,就可以開始使用了
$ sudo vim /etc/paths
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/Users/Shiaukai/bin ← 加入這行