Possible commands

1. Restart the PhD daemon to go to the Fabricator folder and then $./bin/ PhD/log

$./bin/remove destroy rMOBILE

3. Restart the mysql database sudo launchctl unload – F/Library/LaunchDaemons/com. Oracle. Oss. Mysql. Mysqld. Plist sudo launchctl load – F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist

4. Run the sudo /usr/sbin/apachectl restart sudo apachectl -k restart command to restart the Apache server

Two. Some pits that may be used

1. If sudo: /etc/sudoers is owned by UID 501, should be 0 is displayed on the Mac, enable the root account first. Enable and use the root user in OS X

OS X Lion (10.7) and later select “System Preferences” from the Apple menu. From the Display menu, select Users and Groups. Click the lock icon and authenticate using the administrator account. Click Login Options. Click the edit or Join button in the lower right. Click the Open Directory Utility button. Click the lock icon in the Directory Utilities window. Enter the administrator account name and password, and then click OK. From the Edit menu, select Enable Root. Enter the root password you want to use in the Password and Authentication fields, and then click OK.

Mac OS X Snow Leopard (10.6.x) Select System Preferences from the Apple menu. From the Display menu, select Account. Click the lock icon and authenticate using the administrator account. Click Login Options. Click the edit or Join button in the lower right. Click the Open Directory Utility button. Click the lock icon in the Directory Utilities window. Enter the administrator account name and password, and then click OK. From the Edit menu, select Enable Root. Enter the root password you want to use in the Password and Authentication fields, and then click OK.

2. If the sudo command cannot be used on Mac, log in as user root and change the permission on the sudoers file as follows: $CD /etc $ls -al $CHGRP wheel sudoers $chown root /etc/sudoers

3. How does Mac access Mysql? The following is the command line mode, the graphical mode is MySQLWorkBench software

$ cd /usr/local/mysql/bin

$ ls -l

$ mysql -h localhost -u root -p

Enter password:

When you log in, the following screen will appear

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 225

Server version: 5.7.10 MySQL Community Server (GPL)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type ‘help; ‘ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

mysql> show databases; (Note the semicolon on all commands here!)

4. Phpize command fails into the PHP page – protobuf phpize following grep: / usr/include/PHP/main/PHP. H: No to the file or directorygrep: /usr/include/php/Zend/zend_modules.h: No such file or directorygrep: /usr/include/php/Zend/zend_extensions.h: No such file or directoryConfiguring for:PHP Api Version: Zend Module Api No: Zend Extension Api No:

Google’s solution: sudo ln – s/Applications/Xcode. App/Contents/Developer/Platforms/MacOSX platform/Developer/SDKs/MacOSX10.11 SDK/usr/include / /usr/include

Execute ln: /usr/iclude: Operation not permitted

/usr/permitted /usr/permitted /usr/permitted /usr/permitted

The real solution is: sudo ln – s/Applications/Xcode. App/Contents/Developer/Platforms/MacOSX platform/Developer/SDKs/MacOSX10.11 SDK/usr/include / /usr/include

Mac OS X10.11 Enhanced system protection /usr has no operation permission

Methods to temporarily disable system protection: Press Command R (” R “) immediately while pressing the Start button, release the button when the Apple logo and progress bar appear in the middle, wait for the installation interface to resume and the OS X Utilities window to appear, click “Utilities” in the top menu bar, and select “Terminal” from the drop-down menu. Enter CSrutil Disable in the position where the flash character is displayed and press Enter to restart the PC.

You can also use phpize in XAMPP

Three. Later maintenance

The main steps are: 1. Stop the server and stop the daemon process. 2. Update SQL database, this is very likely to error, because the table may change the data structure, table structure changes, need to repair 4. Start the daemon thread, upgrade must be restarted once!

Stop the webserver (including php-fpm, if you use it).

Stop the daemons, with phabricator/bin/phd stop.

Run git pull in libphutil/, arcanist/ and phabricator/.

Run phabricator/bin/storage upgrade.

Start the daemons, with phabricator/bin/phd start.

Restart the webserver (and php-fpm, if you stopped it earlier).

Making Repo: Halfrost – Field

Follow: halfrost dead simple

Source: halfrost.com/phabricator…