MacOS 安装dmg包

macuusafe-emmdeMac-mini:JDK 7 Update 79 macuusafe-emm$ hdiutil attach jdk-7u79-macosx-x64.dmg
macuusafe-emmdeMac-mini:JDK 7 Update 79 macuusafe-emm$ cd /Volumes/JDK\ 7\ Update\ 79/
macuusafe-emmdeMac-mini:JDK 7 Update 79 macuusafe-emm$ sudo installer -pkg JDK\ 7\ Update\ 79.pkg -target /
installer: Package name is JDK 7 Update 79
installer: Installing at base path /
installer: The install was successful.
macuusafe-emmdeMac-mini:JDK 7 Update 79 macuusafe-emm$ ls /Library/Java/JavaVirtualMachines
jdk1.7.0_79.jdk
macuusafe-emmdeMac-mini:JDK 7 Update 79 macuusafe-emm$

macuusafe-emmdeMac-mini:ios_pack macuusafe-emm$ hdiutil attach mysql-5.7.21-macos10.13-x86_64.dmg
正在检查“Protective Master Boot Record (MBR : 0)”的校验和…
Protective Master Boot Record (MBR ::已验证 CRC32 $DCB572A5
正在检查“GPT Header (Primary GPT Header : 1)”的校验和…
GPT Header (Primary GPT Header : 1):已验证 CRC32 $418CB3C3
正在检查“GPT Partition Data (Primary GPT Table : 2)”的校验和…
GPT Partition Data (Primary GPT Tabl:已验证 CRC32 $D49546F2
正在检查“ (Apple_Free : 3)”的校验和…
(Apple_Free : 3):已验证 CRC32 $00000000
正在检查“disk image (Apple_HFS : 4)”的校验和…
……………………………………………………………………………………………………………………………………
disk image (Apple_HFS : 4):已验证 CRC32 $DBE22405
正在检查“GPT Partition Data (Backup GPT Table : 5)”的校验和…
GPT Partition Data (Backup GPT Table:已验证 CRC32 $D49546F2
正在检查“GPT Header (Backup GPT Header : 6)”的校验和…
GPT Header (Backup GPT Header : 6):已验证 CRC32 $AFD7997F
已验证 CRC32 $2B51A346
/dev/disk3 GUID_partition_scheme
/dev/disk3s1 Apple_HFS /Volumes/mysql-5.7.21-macos10.13-x86_64
macuusafe-emmdeMac-mini:ios_pack macuusafe-emm$ cd /Volumes/mysql-5.7.21-macos10.13-x86_64
macuusafe-emmdeMac-mini:mysql-5.7.21-macos10.13-x86_64 macuusafe-emm$ ls
mysql-5.7.21-macos10.13-x86_64.pkg
macuusafe-emmdeMac-mini:mysql-5.7.21-macos10.13-x86_64 macuusafe-emm$ sudo installer -pkg mysql-5.7.21-macos10.13-x86_64.pkg -target /
Password:
installer: Package name is MySQL 5.7.21-community
installer: Installing at base path /
installer: The install was successful.
macuusafe-emmdeMac-mini:mysql-5.7.21-macos10.13-x86_64 macuusafe-emm$ ls /usr/local/
.com.apple.installer.keep mysql/ mysql-5.7.21-macos10.13-x86_64/
macuusafe-emmdeMac-mini:mysql-5.7.21-macos10.13-x86_64 macuusafe-emm$ ls /usr/local/mysql-5.7.21-macos10.13-x86_64/
COPYING README bin/ data/ docs/ include/ keyring/ lib/ man/ share/ support-files/
macuusafe-emmdeMac-mini:mysql-5.7.21-macos10.13-x86_64 macuusafe-emm$ ls /usr/local/mysql-5.7.21-macos10.13-x86_64/bin/
innochecksum mysql mysql_secure_installation mysqld mysqlpump resolve_stack_dump
lz4_decompress mysql_client_test_embedded mysql_ssl_rsa_setup mysqld-debug mysqlshow resolveip
my_print_defaults mysql_config mysql_tzinfo_to_sql mysqld_multi mysqlslap zlib_decompress
myisam_ftdump mysql_config_editor mysql_upgrade mysqld_safe mysqltest_embedded
myisamchk mysql_embedded mysqladmin mysqldump mysqlxtest
myisamlog mysql_install_db mysqlbinlog mysqldumpslow perror
myisampack mysql_plugin mysqlcheck mysqlimport replace
macuusafe-emmdeMac-mini:mysql-5.7.21-macos10.13-x86_64 macuusafe-emm$ ls /usr/local/mysql-5.7.21-macos10.13-x86_64/support-files/
magic mysql-log-rotate mysql.server mysqld_multi.server
macuusafe-emmdeMac-mini:mysql-5.7.21-macos10.13-x86_64 macuusafe-emm$ cd /usr/local/mysql-5.7.21-macos10.13-x86_64/support-files/
macuusafe-emmdeMac-mini:support-files macuusafe-emm$ ls
magic mysql-log-rotate mysql.server mysqld_multi.server
macuusafe-emmdeMac-mini:support-files macuusafe-emm$ ./mysql.server start
Starting MySQL
./usr/local/mysql/bin/mysqld_safe: line 647: /usr/local/mysql/data/macuusafe-emmdeMac-mini.local.err: Permission denied
Logging to ‘/usr/local/mysql/data/macuusafe-emmdeMac-mini.local.err’.
/usr/local/mysql/bin/mysqld_safe: line 144: /usr/local/mysql/data/macuusafe-emmdeMac-mini.local.err: Permission denied
/usr/local/mysql/bin/mysqld_safe: line 198: /usr/local/mysql/data/macuusafe-emmdeMac-mini.local.err: Permission denied
/usr/local/mysql/bin/mysqld_safe: line 906: /usr/local/mysql/data/macuusafe-emmdeMac-mini.local.err: Permission denied
rm: /usr/local/mysql/data/macuusafe-emmdeMac-mini.local.pid.shutdown: Permission denied
/usr/local/mysql/bin/mysqld_safe: line 144: /usr/local/mysql/data/macuusafe-emmdeMac-mini.local.err: Permission denied
ERROR! The server quit without updating PID file (/usr/local/mysql/data/macuusafe-emmdeMac-mini.local.pid).
macuusafe-emmdeMac-mini:support-files macuusafe-emm$ sudo ./mysql.server start
Starting MySQL
.Logging to ‘/usr/local/mysql/data/macuusafe-emmdeMac-mini.local.err’.
SUCCESS!
macuusafe-emmdeMac-mini:support-files macuusafe-emm$ netstat -an|grep 3306
tcp46 0 0 *.3306 *.* LISTEN
macuusafe-emmdeMac-mini:support-files macuusafe-emm$

macuusafe-emmdeMac-mini:support-files macuusafe-emm$ vim ~/.bash_profile
macuusafe-emmdeMac-mini:support-files macuusafe-emm$ cat ~/.bash_profile
export LANG=en_US.UTF-8
export PATH=${PATH}:/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin:/usr/local/mysql-5.7.21-macos10.13-x86_64/bin
macuusafe-emmdeMac-mini:support-files macuusafe-emm$
macuusafe-emmdeMac-mini:support-files macuusafe-emm$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
macuusafe-emmdeMac-mini:support-files macuusafe-emm$ source ~/.bash_profile
macuusafe-emmdeMac-mini:support-files macuusafe-emm$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin:/usr/local/mysql-5.7.21-macos10.13-x86_64/bin

发表评论

电子邮件地址不会被公开。 必填项已用*标注