command line:
defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder
顯示隱藏檔案:defaults write com.apple.finder AppleShowAllFiles TRUE;\killall Finder
不顯示隱藏檔案:defaults write com.apple.finder AppleShowAllFiles FALSE;\killall Finder
將iTunes備份移到別顆硬碟
/Users/使用者名稱/Music/iTunes/iTunes Media
/Users/使用者名稱/Library/Application Support/MobileSync
ln -s /Volumes/500G/MobileSync /Users/使用者名稱/Library/Application\ Support/MobileSync
ln -s /Volumes/500G/MobileSync /Users/vega/Library/Application\ Support/MobileSync
ln -s /Volumes/500G/iTunes\ Media/ ./iTunes\ Media
ln -s /Volumes/500G/iTunes\ Media/ /Users/vega/Music/iTunes/iTunes\ Media
MacOS Sierra
允許安裝任何來源
sudo spctl --master-disable
1. jdk.dmg
2. download tomcat
3. move tomcat folder to /usr/local
4. sudo ln -s /usr/local/tomcat /Library/Tomcat
5. sudo chown -R vega /Library/Tomcat
6. sudo chmod +x /Library/Tomcat/bin/*.sh
7. /Library/Tomcat/bin/startup.sh
1. apachectl start
/Library/WebServer/Documents
2. /etc/apache2/httpd.conf
#LoadModule php5_module libexec/apache2/libphp5.so
#LoadModule rewrite_module libexec/apache2/mod_rewrite.so
User 你的用戶名
Group staff
mysql
cd /var
mkdir mysql
cd mysql
ln -s /tmp/mysql.sock mysql.sock
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
grant all privileges on *.* to 'vega'@'localhost' identified by 'vega' with grant option;
grant all privileges on *.* to 'vega'@'%' identified by 'vega' with grant option;
flush privileges;
.profile
ln -s /Volumes/500G/iTunes\ Media/ /Users/vega/Music/iTunes/iTunes\ Media
MacOS Sierra
允許安裝任何來源
sudo spctl --master-disable
1. jdk.dmg
2. download tomcat
3. move tomcat folder to /usr/local
4. sudo ln -s /usr/local/tomcat /Library/Tomcat
5. sudo chown -R vega /Library/Tomcat
6. sudo chmod +x /Library/Tomcat/bin/*.sh
7. /Library/Tomcat/bin/startup.sh
1. apachectl start
/Library/WebServer/Documents
2. /etc/apache2/httpd.conf
#LoadModule php5_module libexec/apache2/libphp5.so
#LoadModule rewrite_module libexec/apache2/mod_rewrite.so
User 你的用戶名
Group staff
mysql
cd /var
mkdir mysql
cd mysql
ln -s /tmp/mysql.sock mysql.sock
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
grant all privileges on *.* to 'vega'@'localhost' identified by 'vega' with grant option;
grant all privileges on *.* to 'vega'@'%' identified by 'vega' with grant option;
flush privileges;
.profile
export PS1='\[\033[1;31m\]\u@\h:\w\$\033[0m\] '
export PS1='\[\033[1;31m\]\u@\h:\w\$ \[\033[0m\]' #ubuntu works
export PS1='\[\033[1;31m\]\u@\h:\w\$ \[\033[0m\]' #ubuntu works
umask 022
alias ls='ls -la'
alias ll='ls -la'
alias l='ls -lAa'
alias h='cd ~;ll'
alias u='cd ..'
alias n='netstat -ntl'
#alias df='df -BMB'
alias sudo='sudo -i'
.profile root
.profile root
alias tomcaton='/usr/local/tomcat/bin/startup.sh'
alias tomcatoff='/usr/local/tomcat/bin/shutdown.sh'
沒有留言:
張貼留言