This article is mainly to share with you the PHP development common directives, we first share with you to configure the GIT environment configuration, hope to help everyone.
To configure the GIT environment configuration:
git config –global user.name "hoewang" git config -global user.email "37407409@qq.com" $ ssh-keygen-t rsa-c "3740 7409@qq.com "
GitHub: Settings->ssh keys-> Enter the contents of the Id_rsa.pub file (via CD ~/.ssh) to see the file
Common Project Interactions:
Git init//Turn this directory into git can manage the repository git add readme.md//file add to Repository git Add. Not only can be with a single file, but also with wildcards, you can follow the directory. One point to put all the files in the current directory are not tracked all add git commit-m "first commit"//submit files to the repository git remote add Origin git@github.com:hoewang/ Practice.git//Associated remote repository Git push-u origin master//push all the contents of the local library to the remote library
After the change:
1.git status
2. Add the modified file to the index library (git add-u)
3. Re-test (git status)
4. Commit the modifications from staging area to the local repository (git commit-m "modify")
5. Get the latest version from remote and merge to local (git pull)
6. Push the branch of the local repository to the corresponding branch (git push) on the remote server
Open Memcache:
/usr/local/memcache/bin/memcached-umemcache &
Linux:
Set the system time:
Date-s 10/10/17 Set Date
Date-s 09:54:00 Set time
1. Set the system time to synchronize with the network time
# ntpdate Cn.pool.ntp.org
2. Write system time to hardware time
# Hwclock--SYSTOHC
1. Turn on the contents of the first run this file:
Vim/etc/rc.local
Similar constructors
The so-called www directory of 2.apache
/usr/local/apache2/htdocs
3.apache master Configuration
/usr/local/apache2/etc/httpd.conf
4.apache Sub-configuration
/usr/local/apache2/etc/extra/httpd-vhosts.conf
5. Operation Alias
Vim/root/.bashrc
Alias Sta= '/usr/local/apache2/bin/apachectl start '
Alias sto= '/usr/local/apache2/bin/apachectl stop '
SOURCE/ROOT/.BASHRC//Loading this configuration
6.php Configuration
/usr/local/php/etc/php.ini
7. Append Environment variables
Vim/etc/profile
Add Export path= "/usr/local/php/bin: $PATH" on the last line
Export path= "/usr/local/mysql/bin: $PATH"
Source/etc/profile
Firewall:
Iptables-f
Iptables-x
Iptables-z
Detection query:
1. Restart Server service Network restart
2. Detect if Apache is starting NETSTAT–TLUNP | grep 80
3. Detect if MySQL is starting NETSTAT–TLUNP | grep 3306
4. Detecting Remote NETSTAT–TLUNP | grep 22