LinkedIn Corp. agreed to acquire online career-skills educator lynda.com in a cash-and-stock deal valued at about $1.5 billion, representing the…