(a) Port occupancy query Common commands:
Lsof
Netstat
Example:
Lsof-i:80
Netstat-an | grep 80
Netstat-an | grep LISTEN querying the port of native listening
(ii) Crontab Scheduled TasksCommon commands:
Crontab
Common options
Crontab-l View all Scheduled Tasks
Crontab-e new edit timed execution policy
Time FormatMinute-time-day-month-week task
Execute once per minute * * * * *
executes every five minutes */5
Nginx provides the-s signal command-line arguments to let us manipulate them. We can easily specify a boot path using the-p prefix parameter to start multiple fully isolated master processes, or you can explicitly specify a different configuration file using-c filename.Because prefix paths are generally long, reload or reopen Nginx master processes are more inconvenient. Can I use Openresty in OS X at this point? 3. Simplifies these operations by the form of a custom shortcut mentioned in the sh
If you use macports and other package manager for installation, it will automatically help you write a plist file to/library/launchdaemons/xxxxxx. plist, and then execute commands such as sudo port load redis to start and automatically start the instance upon startup.In Mac, there is a command line tool called launchctl, which can be used to control the Automatic startup or shutdown of services. The general syntax isSudo launchctl load/path/to/
Yesterday weekend, at home bored to speak Mac system more to the latest version of 10.11.1.Today to the company need to debug WordPress plugin, you have to access local services.Open the browser to discover Localhost/wordpress 403. You don't have permission to access/wordpress/on the this server.While access to localhost is possible, it is still displayed (this will be displayed without default modifications)It works!Helpless had to open the configura
After launching Docker today, I found that the package was wrong:
? ~ Docker Images
2014/12/11 17:11:06 Get http:///var/run/docker.sock/v1.15/images/json:dial unix/var/run/docker.sock:no such file or di Rectory
So see if boot2docker is not up:
~ boot2docker up
Waiting for VMs and Docker daemon to start ...
..... oooo.
Started.
Writing/users/nilyang/.boot2docker/certs/boot2docker-vm/ca.pem
Writing/users/nilyang/.boot2doc
The start-up service under Mac has three main places to configure:
1, login items, account, System Preferences
2,/system/library/startupitems and/library/startupitems/
3,LAUNCHD system initialization Process configuration.
The first two optimizations are relatively simple, this paper mainly introduces the third more complex launchd configuration optimization.
Launchd is a critical process for initializ
Mac OS X system is on by default the NTP service, that is, you can use any Mac OS installed computer as an NTP server, if not turned on please refer to my previous post to open it: http://asherwang.blog.51cto.com/ 11255017/1855135; my previous company used a MacBook Pro as an NTP server, but sometimes it might take some tweaking to make it work better.1. Set up t
Ejabberd services, generally we are installed Linux + MySQL version, mainly for late-service expansion requirements and formal environment deployment requirements (general server is Linux: specifically, please refer to reject spam articles in Ejabberd using MySQL)However, during the development process, we may not necessarily have a server environment, so it is necessary to install the Ejabberd Mac version
Method 1.Start MySQL service sudo/library/startupitems/mysqlcom/mysqlcom start stop MySQL service sudo/library/startupitems/mysqlcom/mysqlcom Stop restart MySQL service sudo/library/startupitems/mysqlcom/mysqlcom restart//--------------------------------------------- ------------------Method 2 (*) to open the terminal, enter: Vim ~/.bash_profile input I then past
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.